Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Issue 2816733003: 🔍 Update how shared preferences are handled by the widget (Closed)

Created:
3 years, 8 months ago by gone
Modified:
3 years, 8 months ago
Reviewers:
Ted C, Yusuf
CC:
agrieve+watch_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

🔍 Update how shared preferences are handled by the widget * Return the widget to the regular browser process. SharedPreferences don't interact well with multiple processes because they're cached per process. * Add the ability to cache whether or not a voice query is possible, then use that to determine whether a microphone should be visible. * Remove caching of the search engine name as a static String. The user will generally have only one widget. I doubt it helped much, and it complicated the code a bit. * Add support for resetting the widget when Clank's data is cleared. * Instead of updating all the widgets via another broadcast, just do it synchronously when it's called. Minor things: * Set a background color explicitly so that it doesn't come up white. * Remove Herb-related launching. BUG=708844, 710943, 710947 Review-Url: https://codereview.chromium.org/2816733003 Cr-Commit-Position: refs/heads/master@{#464605} Committed: https://chromium.googlesource.com/chromium/src/+/8ef9faffba78738c37df77a160fea80ee5f604af

Patch Set 1 #

Patch Set 2 : git cl try #

Patch Set 3 : Fix initialization, add clearing data support #

Patch Set 4 : Fix background color flashing #

Total comments: 2

Patch Set 5 : Yay for multiple branches and cherry picks. #

Patch Set 6 : Ugh eclipse #

Messages

Total messages: 21 (15 generated)
gone
3 years, 8 months ago (2017-04-12 23:13:55 UTC) #2
gone
Assuming you hadn't had time to look at this yet, so I threw on a ...
3 years, 8 months ago (2017-04-13 21:27:53 UTC) #13
Ted C
lgtm https://codereview.chromium.org/2816733003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java File chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java (right): https://codereview.chromium.org/2816733003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java#newcode219 chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java:219: /* ?
3 years, 8 months ago (2017-04-13 21:31:23 UTC) #14
gone
https://codereview.chromium.org/2816733003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java File chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java (right): https://codereview.chromium.org/2816733003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java#newcode219 chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java:219: /* On 2017/04/13 at 21:31:23, Ted C wrote: > ...
3 years, 8 months ago (2017-04-13 22:41:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2816733003/100001
3 years, 8 months ago (2017-04-13 22:42:13 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 23:31:01 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8ef9faffba78738c37df77a160fe...

Powered by Google App Engine
This is Rietveld 408576698