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

Side by Side Diff: components/invalidation/impl/invalidator_storage.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/invalidation/impl/invalidator_storage.h" 5 #include "components/invalidation/impl/invalidator_storage.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/base64.h" 12 #include "base/base64.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/prefs/pref_registry_simple.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/values.h" 15 #include "base/values.h"
18 #include "components/invalidation/impl/invalidation_prefs.h" 16 #include "components/invalidation/impl/invalidation_prefs.h"
19 #include "components/invalidation/impl/unacked_invalidation_set.h" 17 #include "components/invalidation/impl/unacked_invalidation_set.h"
20 #include "components/pref_registry/pref_registry_syncable.h" 18 #include "components/pref_registry/pref_registry_syncable.h"
19 #include "components/prefs/pref_registry_simple.h"
20 #include "components/prefs/pref_service.h"
21 #include "google/cacheinvalidation/types.pb.h" 21 #include "google/cacheinvalidation/types.pb.h"
22 22
23 namespace { 23 namespace {
24 24
25 const char kInvalidatorMaxInvalidationVersions[] = 25 const char kInvalidatorMaxInvalidationVersions[] =
26 "invalidator.max_invalidation_versions"; 26 "invalidator.max_invalidation_versions";
27 27
28 bool ValueToUnackedInvalidationStorageMap( 28 bool ValueToUnackedInvalidationStorageMap(
29 const base::ListValue& value, 29 const base::ListValue& value,
30 syncer::UnackedInvalidationsMap* map) { 30 syncer::UnackedInvalidationsMap* map) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void InvalidatorStorage::Clear() { 133 void InvalidatorStorage::Clear() {
134 DCHECK(thread_checker_.CalledOnValidThread()); 134 DCHECK(thread_checker_.CalledOnValidThread());
135 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); 135 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations);
136 pref_service_->ClearPref(prefs::kInvalidatorClientId); 136 pref_service_->ClearPref(prefs::kInvalidatorClientId);
137 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState); 137 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState);
138 } 138 }
139 139
140 } // namespace invalidation 140 } // namespace invalidation
OLDNEW
« no previous file with comments | « components/invalidation/DEPS ('k') | components/invalidation/impl/invalidator_storage_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698