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

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)

Created:
3 years, 10 months ago by dullweber
Modified:
3 years, 9 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, msramek+watch_chromium.org, michaelpg+watch-options_chromium.org, droger+watchlist_chromium.org, michaelpg+watch-md-settings_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, agrieve+watch_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, markusheintz_
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate state of basic and advanced tab in CBD dialog. - Introduce ClearBrowsingDataTab enum - Add separate prefs for Basic and Advanced tab Also - Change browsing_data::TimePeriod and browsing_data::BrowsingDataType to enum class TBR=thakis@chromium.org BUG=681523 Review-Url: https://codereview.chromium.org/2671743002 Cr-Commit-Position: refs/heads/master@{#454567} Committed: https://chromium.googlesource.com/chromium/src/+/303f444d68f7f76722c98987afbdc6bcb466fd67

Patch Set 1 #

Patch Set 2 : add dependency #

Patch Set 3 : use enum to differentiate basic and advanced tab #

Patch Set 4 : fix ios #

Patch Set 5 : another ios fix #

Patch Set 6 : ios³ #

Patch Set 7 : small fixes #

Patch Set 8 : fix .classpath file #

Total comments: 26

Patch Set 9 : change enums to enum class #

Patch Set 10 : rebase #

Patch Set 11 : fix ios #

Patch Set 12 : fix ios² #

Patch Set 13 : ios³ #

Patch Set 14 : rename enum to ClearBrowsingDataTab #

Patch Set 15 : more renames #

Patch Set 16 : some missing ios renames #

Patch Set 17 : rebase #

Patch Set 18 : fix rebase #

Patch Set 19 : remove mock code #

Total comments: 4

Patch Set 20 : improve ios formatting #

Total comments: 6

Patch Set 21 : fix javadoc #

Patch Set 22 : add test for policy #

Total comments: 4

Patch Set 23 : rename clear_browsing_data_tab_int to clear_browsing_data_tab #

Patch Set 24 : rebase and fix compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+581 lines, -240 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +36 lines, -15 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/BrowsingDataCounterBridge.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -4 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 12 13 14 15 16 17 18 19 20 21 22 23 8 chunks +21 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesAdvanced.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 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 11 12 13 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataTabsFragment.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +7 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/browsing_data/browsing_data_counter_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 17 18 5 chunks +50 lines, -27 lines 0 comments Download
M chrome/browser/browsing_data/autofill_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_factory.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browsing_data/cache_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/cache_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/browsing_data/downloads_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/history_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +22 lines, -17 lines 0 comments Download
M chrome/browser/browsing_data/hosted_apps_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/browsing_data/media_licenses_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/passwords_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +21 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_api.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/browsing_data/browsing_data_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/net/sdch_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +2 lines, -2 lines 0 comments Download
M components/browsing_data/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -0 lines 0 comments Download
M components/browsing_data/core/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/browsing_data/core/browsing_data_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +14 lines, -3 lines 0 comments Download
M components/browsing_data/core/browsing_data_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +59 lines, -18 lines 0 comments Download
M components/browsing_data/core/browsing_data_utils_unittest.cc View 1 2 3 4 5 6 3 chunks +39 lines, -0 lines 0 comments Download
A components/browsing_data/core/clear_browsing_data_tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
M components/browsing_data/core/counters/browsing_data_counter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +10 lines, -8 lines 0 comments Download
M components/browsing_data/core/counters/browsing_data_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -5 lines 0 comments Download
M components/browsing_data/core/counters/browsing_data_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M components/browsing_data/core/counters/history_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M components/browsing_data/core/pref_names.h View 2 chunks +5 lines, -0 lines 0 comments Download
M components/browsing_data/core/pref_names.cc View 3 chunks +24 lines, -6 lines 0 comments Download
M ios/chrome/app/main_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/browsing_data/browsing_data_counter_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/browsing_data/browsing_data_removal_controller.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/browsing_data/cache_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +18 lines, -14 lines 0 comments Download
M ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -5 lines 0 comments Download
M ios/chrome/browser/signin/browser_state_data_remover.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +6 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/settings/time_range_selector_collection_view_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -3 lines 0 comments Download
M ios/chrome/test/app/history_test_util.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M tools/android/eclipse/.classpath View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 98 (77 generated)
dullweber
Hi Martin, please take a look at this cl. I added tests for the preference ...
3 years, 10 months ago (2017-02-07 19:39:18 UTC) #30
msramek
LGTM % small comments. https://codereview.chromium.org/2671743002/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/2671743002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java#newcode304 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java:304: * Returns whether this preference ...
3 years, 10 months ago (2017-02-08 10:55:56 UTC) #31
dullweber
Thanks, I fixed most comments. I still need to add the test https://codereview.chromium.org/2671743002/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 ...
3 years, 10 months ago (2017-02-08 23:03:19 UTC) #34
msramek
Still LGTM % comment. Please also update the CL description to mention the secondary changes ...
3 years, 10 months ago (2017-02-09 18:16:48 UTC) #53
dullweber
twellington@chromium.org: Please review changes in M chrome/android/java/src/org/chromium/chrome/browser/preferences
3 years, 9 months ago (2017-02-28 09:41:48 UTC) #64
dullweber
sdefresne@chromium.org: Please review these small changes in ios/
3 years, 9 months ago (2017-02-28 09:47:03 UTC) #66
dullweber
emaxx@chromium.org: Please review the change in chrome/browser/policy/configuration_policy_handler_list_factory.cc
3 years, 9 months ago (2017-02-28 09:55:22 UTC) #68
emaxx
https://codereview.chromium.org/2671743002/diff/360001/chrome/browser/policy/configuration_policy_handler_list_factory.cc File chrome/browser/policy/configuration_policy_handler_list_factory.cc (right): https://codereview.chromium.org/2671743002/diff/360001/chrome/browser/policy/configuration_policy_handler_list_factory.cc#newcode738 chrome/browser/policy/configuration_policy_handler_list_factory.cc:738: prefs->SetBoolean(browsing_data::prefs::kDeleteBrowsingHistoryBasic, Looks like there is no actual browser test ...
3 years, 9 months ago (2017-02-28 14:16:14 UTC) #69
sdefresne
ios/ lgtm (with a formatting comment) https://codereview.chromium.org/2671743002/diff/360001/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm File ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm (right): https://codereview.chromium.org/2671743002/diff/360001/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm#newcode195 ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm:195: if (prefValue > ...
3 years, 9 months ago (2017-02-28 17:45:25 UTC) #70
dullweber
improved ios formatting https://codereview.chromium.org/2671743002/diff/360001/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm File ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm (right): https://codereview.chromium.org/2671743002/diff/360001/ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm#newcode195 ios/chrome/browser/ui/settings/clear_browsing_data_collection_view_controller.mm:195: if (prefValue > On 2017/02/28 17:45:24, ...
3 years, 9 months ago (2017-03-01 13:03:09 UTC) #71
Theresa
lgtm % nits https://codereview.chromium.org/2671743002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/2671743002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode769 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:769: * with tabs is visited. nit: ...
3 years, 9 months ago (2017-03-01 17:45:46 UTC) #72
dullweber
tedchoc@chromium.org: Please review changes in chrome/browser/android/ https://codereview.chromium.org/2671743002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/2671743002/diff/380001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode769 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:769: * with tabs ...
3 years, 9 months ago (2017-03-02 09:24:38 UTC) #74
dullweber
@emaxx@chromium.org: I added a test for the policy https://codereview.chromium.org/2671743002/diff/360001/chrome/browser/policy/configuration_policy_handler_list_factory.cc File chrome/browser/policy/configuration_policy_handler_list_factory.cc (right): https://codereview.chromium.org/2671743002/diff/360001/chrome/browser/policy/configuration_policy_handler_list_factory.cc#newcode738 chrome/browser/policy/configuration_policy_handler_list_factory.cc:738: prefs->SetBoolean(browsing_data::prefs::kDeleteBrowsingHistoryBasic, ...
3 years, 9 months ago (2017-03-02 10:10:00 UTC) #77
emaxx
On 2017/03/02 10:10:00, dullweber wrote: > I added a test to verify that the prefs ...
3 years, 9 months ago (2017-03-02 12:28:49 UTC) #82
Ted C
lgtm https://codereview.chromium.org/2671743002/diff/420001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc File chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc (right): https://codereview.chromium.org/2671743002/diff/420001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc#newcode22 chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc:22: jint clear_browsing_data_tab_int) I would try to keep this ...
3 years, 9 months ago (2017-03-02 22:06:15 UTC) #83
dullweber
I fixed the variable name, thanks https://codereview.chromium.org/2671743002/diff/420001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc File chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc (right): https://codereview.chromium.org/2671743002/diff/420001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc#newcode22 chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc:22: jint clear_browsing_data_tab_int) On ...
3 years, 9 months ago (2017-03-03 10:14:19 UTC) #84
dullweber
thakis: adding you as TBR for changes in chrome/browser/ required by converting enum to enum ...
3 years, 9 months ago (2017-03-03 10:22:48 UTC) #87
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/2671743002/440001
3 years, 9 months ago (2017-03-03 10:23:17 UTC) #90
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/333351)
3 years, 9 months ago (2017-03-03 10:37:44 UTC) #92
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/2671743002/460001
3 years, 9 months ago (2017-03-03 10:48:20 UTC) #95
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 11:51:03 UTC) #98
Message was sent while issue was closed.
Committed patchset #24 (id:460001) as
https://chromium.googlesource.com/chromium/src/+/303f444d68f7f76722c98987afbd...

Powered by Google App Engine
This is Rietveld 408576698