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

Issue 2832263002: Clipboard Android - Store and Read Last Modified Time from Prefs (Closed)

Created:
3 years, 8 months ago by Mark P
Modified:
3 years, 7 months ago
Reviewers:
Bernhard Bauer, dcheng
CC:
chromium-reviews, jdonnelly+watch_chromium.org, dcheng, Ted C, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Clipboard Android - Store and Read Last Modified Time from Prefs Tested by enabling clipboard provider and the clipboard interactively on a device. Clipboard suggestions are persisted to and restored from prefs, which works even if I kill Chrome. I also added LOG(INFO) lines during this and saw the writes and reads happening at the correct time and with the right values. BUG=711574 R=bauerb@chromium.org, dcheng@chromium.org Review-Url: https://codereview.chromium.org/2832263002 . Cr-Commit-Position: refs/heads/master@{#467796} Committed: https://chromium.googlesource.com/chromium/src/+/ee17df91c787b9da94a89bf7d19704eeb6d130c6

Patch Set 1 #

Patch Set 2 : comment cleanup #

Total comments: 7

Patch Set 3 : dcheng's comments, with a fragment of a test #

Patch Set 4 : restore guard #

Total comments: 8

Patch Set 5 : ted's comments #

Patch Set 6 : revert omnibox_field_trial_code, rebase #

Total comments: 18

Patch Set 7 : everyone's comments #

Total comments: 6

Patch Set 8 : rewriting everything to use callback and remove prefs from ui/ #

Patch Set 9 : iadd missing files #

Total comments: 7

Patch Set 10 : final comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -4 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/browser_prefs_android.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/browser_prefs_android.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/android/preferences/clipboard_android.h View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/android/preferences/clipboard_android.cc View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_android.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 2 3 4 5 6 7 8 9 12 chunks +41 lines, -4 lines 0 comments Download

Messages

Total messages: 58 (33 generated)
Mark P
Ted, Can you glance at this changelist, in particular at the four files in chrome/browser/... ...
3 years, 8 months ago (2017-04-21 20:19:44 UTC) #4
Mark P
+dcheng (who is I know OOO through May 2nd) to review ui/base/..., as I suspect ...
3 years, 8 months ago (2017-04-21 22:43:43 UTC) #9
dcheng
As a general question, how does this work in the presence of multiple profiles? https://codereview.chromium.org/2832263002/diff/20001/ui/base/clipboard/clipboard_android.cc ...
3 years, 8 months ago (2017-04-22 01:43:01 UTC) #11
Mark P
> As a general question, how does this work in the > presence of multiple ...
3 years, 8 months ago (2017-04-24 17:33:26 UTC) #16
Ted C
+bauerb who is much more familiar with prefs and might have a better opinion about ...
3 years, 8 months ago (2017-04-24 20:45:48 UTC) #18
Mark P
It looks like this change is generally good. I'm hoping it's time for some approvals ...
3 years, 8 months ago (2017-04-24 22:19:56 UTC) #19
dcheng
I'm OK with landing as-is, so I'm going to LGTM the ui/base/clipboard bits. As mentioned ...
3 years, 8 months ago (2017-04-25 13:17:12 UTC) #24
Bernhard Bauer
https://codereview.chromium.org/2832263002/diff/20001/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/2832263002/diff/20001/ui/base/clipboard/clipboard_android.cc#newcode205 ui/base/clipboard/clipboard_android.cc:205: // |local_state_| may be null in tests. On 2017/04/25 ...
3 years, 8 months ago (2017-04-25 13:30:06 UTC) #25
Mark P
Looks like we're almost set. I think the only remaining question is whether we can ...
3 years, 8 months ago (2017-04-25 18:51:22 UTC) #27
Mark P
+sky@ for the additional include in ui/base/BUILD.gn (which for the record bauerb@ says is reasonable ...
3 years, 8 months ago (2017-04-25 18:52:41 UTC) #30
sky
We don't want ui depending upon prefs. Either use a delegate or callback to notify ...
3 years, 8 months ago (2017-04-25 20:59:30 UTC) #31
Mark P
On Tue, Apr 25, 2017 at 1:59 PM, <sky@chromium.org> wrote: > We don't want ui ...
3 years, 8 months ago (2017-04-25 22:02:01 UTC) #32
sky
On Tue, Apr 25, 2017 at 3:01 PM, Mark Pearson <mpearson@chromium.org> wrote: > > On ...
3 years, 8 months ago (2017-04-25 22:19:48 UTC) #33
sky
On Tue, Apr 25, 2017 at 3:01 PM, Mark Pearson <mpearson@chromium.org> wrote: > > On ...
3 years, 8 months ago (2017-04-25 22:19:48 UTC) #34
Bernhard Bauer
On 2017/04/25 22:19:48, sky wrote: > On Tue, Apr 25, 2017 at 3:01 PM, Mark ...
3 years, 8 months ago (2017-04-26 10:03:42 UTC) #35
Mark P
bauerb@, Can you please take a look at this changelist? It's been rewritten to remove ...
3 years, 7 months ago (2017-04-26 22:18:32 UTC) #37
Bernhard Bauer
LGTM https://codereview.chromium.org/2832263002/diff/110001/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/2832263002/diff/110001/ui/base/clipboard/clipboard_android.cc#newcode47 ui/base/clipboard/clipboard_android.cc:47: const char kClipboardLastModifiedTimePref[] = "ui.clipboard.last_modified_time"; On 2017/04/26 22:18:32, ...
3 years, 7 months ago (2017-04-27 09:27:17 UTC) #42
dcheng
lgtm with some minor nits FWIW, I think I see a way to pull the ...
3 years, 7 months ago (2017-04-27 15:25:39 UTC) #43
Mark P
https://codereview.chromium.org/2832263002/diff/110001/ui/base/clipboard/clipboard_android.cc File ui/base/clipboard/clipboard_android.cc (right): https://codereview.chromium.org/2832263002/diff/110001/ui/base/clipboard/clipboard_android.cc#newcode47 ui/base/clipboard/clipboard_android.cc:47: const char kClipboardLastModifiedTimePref[] = "ui.clipboard.last_modified_time"; On 2017/04/27 09:27:17, Bernhard ...
3 years, 7 months ago (2017-04-27 19:26:00 UTC) #44
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/2832263002/170001
3 years, 7 months ago (2017-04-27 19:32:48 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/328265)
3 years, 7 months ago (2017-04-27 19:52:31 UTC) #49
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/2832263002/170001
3 years, 7 months ago (2017-04-27 20:30:15 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/372127)
3 years, 7 months ago (2017-04-27 20:58:25 UTC) #53
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/2832263002/170001
3 years, 7 months ago (2017-04-27 21:40:43 UTC) #55
Mark P
3 years, 7 months ago (2017-04-27 21:51:37 UTC) #58
Message was sent while issue was closed.
Committed patchset #10 (id:170001) manually as
ee17df91c787b9da94a89bf7d19704eeb6d130c6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698