OLD | NEW |
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 Loading... |
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 Loading... |
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 | |
OLD | NEW |