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

Side by Side Diff: components/sync_driver/sync_prefs.cc

Issue 1147753002: Fixup Wallet sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/sync_driver/sync_prefs.h" 5 #include "components/sync_driver/sync_prefs.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_member.h" 8 #include "base/prefs/pref_member.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 switch (data_type) { 245 switch (data_type) {
246 case syncer::BOOKMARKS: 246 case syncer::BOOKMARKS:
247 return prefs::kSyncBookmarks; 247 return prefs::kSyncBookmarks;
248 case syncer::PASSWORDS: 248 case syncer::PASSWORDS:
249 return prefs::kSyncPasswords; 249 return prefs::kSyncPasswords;
250 case syncer::PREFERENCES: 250 case syncer::PREFERENCES:
251 return prefs::kSyncPreferences; 251 return prefs::kSyncPreferences;
252 case syncer::AUTOFILL: 252 case syncer::AUTOFILL:
253 return prefs::kSyncAutofill; 253 return prefs::kSyncAutofill;
254 case syncer::AUTOFILL_PROFILE: 254 case syncer::AUTOFILL_PROFILE:
255 return prefs::kSyncAutofillProfile;
256 case syncer::AUTOFILL_WALLET_DATA:
255 return prefs::kSyncAutofillWallet; 257 return prefs::kSyncAutofillWallet;
256 case syncer::AUTOFILL_WALLET_DATA:
257 return prefs::kSyncAutofillProfile;
258 case syncer::THEMES: 258 case syncer::THEMES:
259 return prefs::kSyncThemes; 259 return prefs::kSyncThemes;
260 case syncer::TYPED_URLS: 260 case syncer::TYPED_URLS:
261 return prefs::kSyncTypedUrls; 261 return prefs::kSyncTypedUrls;
262 case syncer::EXTENSION_SETTINGS: 262 case syncer::EXTENSION_SETTINGS:
263 return prefs::kSyncExtensionSettings; 263 return prefs::kSyncExtensionSettings;
264 case syncer::EXTENSIONS: 264 case syncer::EXTENSIONS:
265 return prefs::kSyncExtensions; 265 return prefs::kSyncExtensions;
266 case syncer::APP_LIST: 266 case syncer::APP_LIST:
267 return prefs::kSyncAppList; 267 return prefs::kSyncAppList;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 469
470 bool SyncPrefs::DidSyncShutdownCleanly() const { 470 bool SyncPrefs::DidSyncShutdownCleanly() const {
471 return pref_service_->GetBoolean(prefs::kSyncShutdownCleanly); 471 return pref_service_->GetBoolean(prefs::kSyncShutdownCleanly);
472 } 472 }
473 473
474 void SyncPrefs::SetCleanShutdown(bool value) { 474 void SyncPrefs::SetCleanShutdown(bool value) {
475 pref_service_->SetBoolean(prefs::kSyncShutdownCleanly, value); 475 pref_service_->SetBoolean(prefs::kSyncShutdownCleanly, value);
476 } 476 }
477 477
478 } // namespace sync_driver 478 } // namespace sync_driver
479
480
OLDNEW
« no previous file with comments | « no previous file | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698