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

Side by Side Diff: chrome/browser/sync/invalidations/invalidator_storage.cc

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 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/sync/invalidations/invalidator_storage.h" 5 #include "chrome/browser/sync/invalidations/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/browser/prefs/pref_registry_syncable.h"
18 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "components/user_prefs/pref_registry_syncable.h"
19 #include "sync/internal_api/public/base/model_type.h" 19 #include "sync/internal_api/public/base/model_type.h"
20 20
21 using syncer::InvalidationStateMap; 21 using syncer::InvalidationStateMap;
22 22
23 namespace browser_sync { 23 namespace browser_sync {
24 24
25 namespace { 25 namespace {
26 26
27 const char kSourceKey[] = "source"; 27 const char kSourceKey[] = "source";
28 const char kNameKey[] = "name"; 28 const char kNameKey[] = "name";
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 return; 332 return;
333 it->second.current = ack_handle; 333 it->second.current = ack_handle;
334 334
335 base::ListValue state_map_list; 335 base::ListValue state_map_list;
336 SerializeToList(state_map, &state_map_list); 336 SerializeToList(state_map, &state_map_list);
337 pref_service_->Set(prefs::kInvalidatorMaxInvalidationVersions, 337 pref_service_->Set(prefs::kInvalidatorMaxInvalidationVersions,
338 state_map_list); 338 state_map_list);
339 } 339 }
340 340
341 } // namespace browser_sync 341 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698