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

Issue 2730703003: Change CBD layout and texts (Closed)

Created:
3 years, 9 months ago by dullweber
Modified:
3 years, 8 months ago
Reviewers:
msramek, Theresa, Maria
CC:
chromium-reviews, dbeam+watch-options_chromium.org, msramek+watch_chromium.org, michaelpg+watch-options_chromium.org, michaelpg+watch-md-settings_chromium.org, agrieve+watch_chromium.org, markusheintz_, srahim+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change layout and texts for new CBD dialog. - Improved spinner layout - New spinner texts (1 day -> 24 hours, 1 week -> 7 days) - Implement a way to show different counter texts for basic and advanced mode - New counter texts for basic mode - Clickable myactivity.google.com link in checkbox summary - Add instrumentation test to verify that the right string is shown depending on sign in and sync state. Screenshots for default display size (Nexus 6P): https://screenshot.googleplex.com/P1hFk9v8V3k.png https://screenshot.googleplex.com/zVjhJJWnXUo.png Screenshots on largest display size (Nexus 6P): https://screenshot.googleplex.com/m9nBDbQ5ra5.png https://screenshot.googleplex.com/Gb6vA38rfOH.png BUG=681523 Review-Url: https://codereview.chromium.org/2730703003 Cr-Commit-Position: refs/heads/master@{#462406} Committed: https://chromium.googlesource.com/chromium/src/+/53bf4e3a7fca5f9faa16e56ba7b8a3c280324057

Patch Set 1 #

Patch Set 2 : add clickable link, improve layout #

Patch Set 3 : only show history text when synced #

Patch Set 4 : add browsertest for checkbox summaries #

Total comments: 1

Patch Set 5 : try fix tests #

Total comments: 5

Patch Set 6 : remove CBDTab enum usage from counter utils #

Patch Set 7 : remove hamcrest matcher #

Patch Set 8 : readd hamcrest conditions #

Total comments: 9

Patch Set 9 : fixes #

Patch Set 10 : cleanup test #

Total comments: 28

Patch Set 11 : fix comments #

Patch Set 12 : rebase #

Patch Set 13 : remove checkbox gravity #

Patch Set 14 : rebase #

Total comments: 10

Patch Set 15 : Remove padding #

Total comments: 2

Patch Set 16 : add teardown method to test #

Patch Set 17 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -48 lines) Patch
A + chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
A chrome/android/java/res/layout/divider_preference_with_bottom_padding.xml View 1 chunk +12 lines, -0 lines 0 comments Download
D chrome/android/java/res/layout/preference_spinner_single_line.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -13 lines 0 comments Download
A chrome/android/java/res/layout/preference_spinner_single_line_item.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/attrs.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/res/xml/clear_browsing_data_preferences_tab.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataCheckBoxPreference.java View 1 1 chunk +11 lines, -4 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/SpinnerPreference.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasic.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTab.java View 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +170 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_factory.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 2 3 4 5 1 chunk +17 lines, -6 lines 0 comments Download
M components/browsing_data/core/browsing_data_utils.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M components/browsing_data_strings.grdp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 83 (63 generated)
dullweber
Hi Martin, please take a look at this cl. https://codereview.chromium.org/2730703003/diff/60001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2730703003/diff/60001/chrome/android/BUILD.gn#newcode455 chrome/android/BUILD.gn:455: ...
3 years, 9 months ago (2017-03-14 12:33:36 UTC) #19
msramek
Let me ask a question before I start reviewing this further, as the answer might ...
3 years, 9 months ago (2017-03-15 10:23:35 UTC) #22
dullweber
I removed the CBDTab enum parameter from BrowsingDataUtils and BrowsingDataCounterUtils https://codereview.chromium.org/2730703003/diff/80001/components/browsing_data/core/browsing_data_utils.cc File components/browsing_data/core/browsing_data_utils.cc (right): https://codereview.chromium.org/2730703003/diff/80001/components/browsing_data/core/browsing_data_utils.cc#newcode91 ...
3 years, 9 months ago (2017-03-15 10:59:50 UTC) #23
msramek
Looks good, just a few more comments :) https://codereview.chromium.org/2730703003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java (right): https://codereview.chromium.org/2730703003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#newcode124 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java:124: if ...
3 years, 9 months ago (2017-03-22 14:40:22 UTC) #28
dullweber
https://codereview.chromium.org/2730703003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java (right): https://codereview.chromium.org/2730703003/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#newcode124 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java:124: if (ClearBrowsingDataTabsFragment.isFeatureEnabled()) { On 2017/03/22 14:40:21, msramek wrote: > ...
3 years, 9 months ago (2017-03-23 10:22:34 UTC) #29
dullweber
twellington@chromium.org: Please review these changes. After this cl the new UI for CBD should be ...
3 years, 9 months ago (2017-03-24 09:57:03 UTC) #35
Theresa
https://codereview.chromium.org/2730703003/diff/180001/chrome/android/java/res/layout/divider_preference_with_bottom_padding.xml File chrome/android/java/res/layout/divider_preference_with_bottom_padding.xml (right): https://codereview.chromium.org/2730703003/diff/180001/chrome/android/java/res/layout/divider_preference_with_bottom_padding.xml#newcode11 chrome/android/java/res/layout/divider_preference_with_bottom_padding.xml:11: <View style="@style/Divider"/> Does this need to be wrapped in ...
3 years, 9 months ago (2017-03-24 17:15:37 UTC) #36
dullweber
Thanks for the review, I fixed or responded to the comments. Sadly I forgot a ...
3 years, 9 months ago (2017-03-27 14:11:04 UTC) #39
Theresa
https://codereview.chromium.org/2730703003/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java (right): https://codereview.chromium.org/2730703003/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java#newcode55 chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java:55: // Create custom onTouch listener to be able to ...
3 years, 9 months ago (2017-03-27 15:24:53 UTC) #40
msramek
LGTM when Theresa is happy. https://codereview.chromium.org/2730703003/diff/140001/chrome/browser/browsing_data/browsing_data_counter_factory.cc File chrome/browser/browsing_data/browsing_data_counter_factory.cc (left): https://codereview.chromium.org/2730703003/diff/140001/chrome/browser/browsing_data/browsing_data_counter_factory.cc#oldcode51 chrome/browser/browsing_data/browsing_data_counter_factory.cc:51: pref_name == browsing_data::prefs::kDeleteBrowsingHistoryBasic) { ...
3 years, 8 months ago (2017-03-28 13:43:43 UTC) #45
dullweber
https://codereview.chromium.org/2730703003/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java (right): https://codereview.chromium.org/2730703003/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java#newcode100 chrome/android/java/src/org/chromium/chrome/browser/preferences/ClearBrowsingDataTabCheckBoxPreference.java:100: ApiCompatibilityUtils.getPaddingEnd(textLayout), 0); On 2017/03/27 15:24:52, Theresa wrote: > On ...
3 years, 8 months ago (2017-03-30 09:11:58 UTC) #50
Theresa
https://codereview.chromium.org/2730703003/diff/260001/chrome/android/java/res/values/attrs.xml File chrome/android/java/res/values/attrs.xml (right): https://codereview.chromium.org/2730703003/diff/260001/chrome/android/java/res/values/attrs.xml#newcode74 chrome/android/java/res/values/attrs.xml:74: <!-- Used to change the SpinnerPreference to displays the ...
3 years, 8 months ago (2017-03-30 21:57:47 UTC) #59
dullweber
Thanks! I removed the padding and updated the screenshots. https://codereview.chromium.org/2730703003/diff/260001/chrome/android/java/res/values/attrs.xml File chrome/android/java/res/values/attrs.xml (right): https://codereview.chromium.org/2730703003/diff/260001/chrome/android/java/res/values/attrs.xml#newcode74 chrome/android/java/res/values/attrs.xml:74: ...
3 years, 8 months ago (2017-03-31 10:42:42 UTC) #61
Theresa
lgtm https://codereview.chromium.org/2730703003/diff/260001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java (right): https://codereview.chromium.org/2730703003/diff/260001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java#newcode60 chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java:60: On 2017/03/31 10:42:42, dullweber wrote: > On 2017/03/30 ...
3 years, 8 months ago (2017-03-31 15:29:06 UTC) #62
dullweber
Thanks! https://codereview.chromium.org/2730703003/diff/260001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java (right): https://codereview.chromium.org/2730703003/diff/260001/chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java#newcode60 chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesBasicTest.java:60: On 2017/03/31 15:29:05, Theresa wrote: > On 2017/03/31 ...
3 years, 8 months ago (2017-04-03 08:25:03 UTC) #63
dullweber
miguelg@chromium.org: Please review changes in chrome/android/java/strings/android_chrome_strings.grd I added additional strings for a redesigned clear browsing ...
3 years, 8 months ago (2017-04-03 08:37:25 UTC) #71
dullweber
mariakhomenko@chromium.org: Please review changes in chrome/android/java/strings/android_chrome_strings.grd I added additional strings for a redesigned clear browsing ...
3 years, 8 months ago (2017-04-05 11:57:16 UTC) #76
Maria
On 2017/04/05 11:57:16, dullweber wrote: > mailto:mariakhomenko@chromium.org: Please review changes in > chrome/android/java/strings/android_chrome_strings.grd > > ...
3 years, 8 months ago (2017-04-05 16:41:57 UTC) #77
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/2730703003/320001
3 years, 8 months ago (2017-04-06 08:14:35 UTC) #80
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 09:54:12 UTC) #83
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/53bf4e3a7fca5f9faa16e56ba7b8...

Powered by Google App Engine
This is Rietveld 408576698