🔍 General widget fixes

Desktop / Chromium - dfalcantara [chromium.org] - 20 April 2017 17:01 EDT

- Clean up initialization slightly. Now that there's no animation to show, we can reduce the deviation from the main pathway.

- Add a "temporary" title to the search widget so it doesn't just say "Chromium" when adding the widget.

- Swallow exceptions when the BroadcastReceiver is triggered via an Intent and tries to do anything. This prevents us from getting into situations where Android believes the "process is bad" and refuses to let the widget work, but it does mask when real crashes happen. After three crashes we just let it crash as intended so that the dump uploads.

BUG=708844,712061

Review-Url: https://codereview.chromium.org/2822633002 Cr-Commit-Position: refs/heads/master@{#466127}

f32cf78 🔍 General widget fixes
chrome/android/java/AndroidManifest.xml | 9 +-
.../java/res_chromium/values/channel_constants.xml | 1 +
.../browser/init/AsyncInitializationActivity.java | 11 ++-
.../browser/init/ChromeBrowserInitializer.java | 4 -
.../browser/init/ProcessInitializationHandler.java | 3 +
.../browser/searchwidget/SearchActivity.java | 43 +++-----
.../searchwidget/SearchBoxDataProvider.java | 1 +
.../browser/searchwidget/SearchWidgetProvider.java | 108 +++++++++++++++++----
.../searchwidget/SearchWidgetProviderTest.java | 31 ++++++
9 files changed, 154 insertions(+), 57 deletions(-)

Upstream: git.chromium.org


  • Share