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

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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 case syncable::AUTOFILL_PROFILE: 365 case syncable::AUTOFILL_PROFILE:
366 return prefs::kSyncAutofillProfile; 366 return prefs::kSyncAutofillProfile;
367 case syncable::THEMES: 367 case syncable::THEMES:
368 return prefs::kSyncThemes; 368 return prefs::kSyncThemes;
369 case syncable::TYPED_URLS: 369 case syncable::TYPED_URLS:
370 return prefs::kSyncTypedUrls; 370 return prefs::kSyncTypedUrls;
371 case syncable::EXTENSION_SETTINGS: 371 case syncable::EXTENSION_SETTINGS:
372 return prefs::kSyncExtensionSettings; 372 return prefs::kSyncExtensionSettings;
373 case syncable::EXTENSIONS: 373 case syncable::EXTENSIONS:
374 return prefs::kSyncExtensions; 374 return prefs::kSyncExtensions;
375 case syncable::APP_SETTINGS:
376 return prefs::kSyncAppSettings;
375 case syncable::APPS: 377 case syncable::APPS:
376 return prefs::kSyncApps; 378 return prefs::kSyncApps;
377 case syncable::SEARCH_ENGINES: 379 case syncable::SEARCH_ENGINES:
378 return prefs::kSyncSearchEngines; 380 return prefs::kSyncSearchEngines;
379 case syncable::SESSIONS: 381 case syncable::SESSIONS:
380 return prefs::kSyncSessions; 382 return prefs::kSyncSessions;
381 case syncable::APP_NOTIFICATIONS: 383 case syncable::APP_NOTIFICATIONS:
382 return prefs::kSyncAppNotifications; 384 return prefs::kSyncAppNotifications;
383 default: 385 default:
384 break; 386 break;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 const char* pref_name = GetPrefNameForDataType(type); 499 const char* pref_name = GetPrefNameForDataType(type);
498 if (!pref_name) { 500 if (!pref_name) {
499 NOTREACHED(); 501 NOTREACHED();
500 return; 502 return;
501 } 503 }
502 pref_service_->SetBoolean(pref_name, is_preferred); 504 pref_service_->SetBoolean(pref_name, is_preferred);
503 pref_service_->ScheduleSavePersistentPrefs(); 505 pref_service_->ScheduleSavePersistentPrefs();
504 } 506 }
505 507
506 } // namespace browser_sync 508 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698