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

Side by Side Diff: chrome/browser/invalidation/invalidator_storage.cc

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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 "chrome/browser/invalidation/invalidator_storage.h" 5 #include "chrome/browser/invalidation/invalidator_storage.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/task_runner.h" 15 #include "base/task_runner.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "components/user_prefs/pref_registry_syncable.h" 18 #include "components/pref_registry/pref_registry_syncable.h"
19 19
20 namespace { 20 namespace {
21 21
22 const char kInvalidatorMaxInvalidationVersions[] = 22 const char kInvalidatorMaxInvalidationVersions[] =
23 "invalidator.max_invalidation_versions"; 23 "invalidator.max_invalidation_versions";
24 24
25 25
26 bool ValueToUnackedInvalidationStorageMap( 26 bool ValueToUnackedInvalidationStorageMap(
27 const base::ListValue& value, 27 const base::ListValue& value,
28 syncer::UnackedInvalidationsMap* map) { 28 syncer::UnackedInvalidationsMap* map) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 void InvalidatorStorage::Clear() { 129 void InvalidatorStorage::Clear() {
130 DCHECK(thread_checker_.CalledOnValidThread()); 130 DCHECK(thread_checker_.CalledOnValidThread());
131 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); 131 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations);
132 pref_service_->ClearPref(prefs::kInvalidatorClientId); 132 pref_service_->ClearPref(prefs::kInvalidatorClientId);
133 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState); 133 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState);
134 } 134 }
135 135
136 } // namespace invalidation 136 } // namespace invalidation
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/invalidation_service_factory.cc ('k') | chrome/browser/managed_mode/managed_mode_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698