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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 } | 492 } |
493 | 493 |
494 void SyncPrefs::SetFirstSyncTime(base::Time time) { | 494 void SyncPrefs::SetFirstSyncTime(base::Time time) { |
495 pref_service_->SetInt64(prefs::kSyncFirstSyncTime, time.ToInternalValue()); | 495 pref_service_->SetInt64(prefs::kSyncFirstSyncTime, time.ToInternalValue()); |
496 } | 496 } |
497 | 497 |
498 void SyncPrefs::ClearFirstSyncTime() { | 498 void SyncPrefs::ClearFirstSyncTime() { |
499 pref_service_->ClearPref(prefs::kSyncFirstSyncTime); | 499 pref_service_->ClearPref(prefs::kSyncFirstSyncTime); |
500 } | 500 } |
501 | 501 |
502 } // namespace browser_sync | 502 } // namespace sync_driver |
OLD | NEW |