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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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 | 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/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
14 #include "base/task_runner.h" 15 #include "base/task_runner.h"
15 #include "base/values.h" 16 #include "base/values.h"
16 #include "chrome/browser/prefs/pref_registry_syncable.h" 17 #include "chrome/browser/prefs/pref_registry_syncable.h"
17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.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";
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return; 334 return;
335 it->second.current = ack_handle; 335 it->second.current = ack_handle;
336 336
337 base::ListValue state_map_list; 337 base::ListValue state_map_list;
338 SerializeToList(state_map, &state_map_list); 338 SerializeToList(state_map, &state_map_list);
339 pref_service_->Set(prefs::kInvalidatorMaxInvalidationVersions, 339 pref_service_->Set(prefs::kInvalidatorMaxInvalidationVersions,
340 state_map_list); 340 state_map_list);
341 } 341 }
342 342
343 } // namespace browser_sync 343 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698