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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 12286007: Revert "Revert 182527" ([Sync] Make SESSIONS an implicit type) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 5c17fb0f3e3c01b4bd833b558a4d80e13bc5a721..3b4f3607300dfcff31e8cfe719ff0619583e689a 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -1326,7 +1326,7 @@ void ProfileSyncService::UpdateSelectedTypesHistogram(
// Only log the data types that are shown in the sync settings ui.
// Note: the order of these types must match the ordering of
// the respective types in ModelType
- const browser_sync::user_selectable_type::UserSelectableSyncType
+const browser_sync::user_selectable_type::UserSelectableSyncType
user_selectable_types[] = {
browser_sync::user_selectable_type::BOOKMARKS,
browser_sync::user_selectable_type::PREFERENCES,
@@ -1335,11 +1335,11 @@ void ProfileSyncService::UpdateSelectedTypesHistogram(
browser_sync::user_selectable_type::THEMES,
browser_sync::user_selectable_type::TYPED_URLS,
browser_sync::user_selectable_type::EXTENSIONS,
- browser_sync::user_selectable_type::SESSIONS,
- browser_sync::user_selectable_type::APPS
+ browser_sync::user_selectable_type::APPS,
+ browser_sync::user_selectable_type::PROXY_TABS
};
- COMPILE_ASSERT(25 == syncer::MODEL_TYPE_COUNT, UpdateCustomConfigHistogram);
+ COMPILE_ASSERT(26 == syncer::MODEL_TYPE_COUNT, UpdateCustomConfigHistogram);
if (!sync_everything) {
const syncer::ModelTypeSet current_types = GetPreferredDataTypes();
@@ -1381,7 +1381,8 @@ void ProfileSyncService::RefreshSpareBootstrapToken(
}
#endif
-void ProfileSyncService::OnUserChoseDatatypes(bool sync_everything,
+void ProfileSyncService::OnUserChoseDatatypes(
+ bool sync_everything,
syncer::ModelTypeSet chosen_types) {
if (!backend_.get() && !HasUnrecoverableError()) {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698