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

Side by Side Diff: chrome/browser/sync/sync_prefs.cc

Issue 8375047: Separate the syncing of extension settings and app settings into separate data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/sync_prefs.h" 5 #include "chrome/browser/sync/sync_prefs.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 case syncable::AUTOFILL_PROFILE: 342 case syncable::AUTOFILL_PROFILE:
343 return prefs::kSyncAutofillProfile; 343 return prefs::kSyncAutofillProfile;
344 case syncable::THEMES: 344 case syncable::THEMES:
345 return prefs::kSyncThemes; 345 return prefs::kSyncThemes;
346 case syncable::TYPED_URLS: 346 case syncable::TYPED_URLS:
347 return prefs::kSyncTypedUrls; 347 return prefs::kSyncTypedUrls;
348 case syncable::EXTENSION_SETTINGS: 348 case syncable::EXTENSION_SETTINGS:
349 return prefs::kSyncExtensionSettings; 349 return prefs::kSyncExtensionSettings;
350 case syncable::EXTENSIONS: 350 case syncable::EXTENSIONS:
351 return prefs::kSyncExtensions; 351 return prefs::kSyncExtensions;
352 case syncable::APP_SETTINGS:
353 return prefs::kSyncAppSettings;
352 case syncable::APPS: 354 case syncable::APPS:
353 return prefs::kSyncApps; 355 return prefs::kSyncApps;
354 case syncable::SEARCH_ENGINES: 356 case syncable::SEARCH_ENGINES:
355 return prefs::kSyncSearchEngines; 357 return prefs::kSyncSearchEngines;
356 case syncable::SESSIONS: 358 case syncable::SESSIONS:
357 return prefs::kSyncSessions; 359 return prefs::kSyncSessions;
358 case syncable::APP_NOTIFICATIONS: 360 case syncable::APP_NOTIFICATIONS:
359 return prefs::kSyncAppNotifications; 361 return prefs::kSyncAppNotifications;
360 default: 362 default:
361 break; 363 break;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 const char* pref_name = GetPrefNameForDataType(type); 476 const char* pref_name = GetPrefNameForDataType(type);
475 if (!pref_name) { 477 if (!pref_name) {
476 NOTREACHED(); 478 NOTREACHED();
477 return; 479 return;
478 } 480 }
479 pref_service_->SetBoolean(pref_name, is_preferred); 481 pref_service_->SetBoolean(pref_name, is_preferred);
480 pref_service_->ScheduleSavePersistentPrefs(); 482 pref_service_->ScheduleSavePersistentPrefs();
481 } 483 }
482 484
483 } // namespace browser_sync 485 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698