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

Side by Side Diff: components/user_prefs/tracked/tracked_preferences_migration.cc

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments Created 5 years, 4 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 "chrome/browser/prefs/tracked/tracked_preferences_migration.h" 5 #include "components/user_prefs/tracked/tracked_preferences_migration.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/prefs/tracked/dictionary_hash_store_contents.h" 13 #include "components/user_prefs/tracked/dictionary_hash_store_contents.h"
14 #include "chrome/browser/prefs/tracked/hash_store_contents.h" 14 #include "components/user_prefs/tracked/hash_store_contents.h"
15 #include "chrome/browser/prefs/tracked/interceptable_pref_filter.h" 15 #include "components/user_prefs/tracked/interceptable_pref_filter.h"
16 #include "chrome/browser/prefs/tracked/pref_hash_store.h" 16 #include "components/user_prefs/tracked/pref_hash_store.h"
17 #include "chrome/browser/prefs/tracked/pref_hash_store_transaction.h" 17 #include "components/user_prefs/tracked/pref_hash_store_transaction.h"
18 18
19 namespace { 19 namespace {
20 20
21 class TrackedPreferencesMigrator 21 class TrackedPreferencesMigrator
22 : public base::RefCounted<TrackedPreferencesMigrator> { 22 : public base::RefCounted<TrackedPreferencesMigrator> {
23 public: 23 public:
24 TrackedPreferencesMigrator( 24 TrackedPreferencesMigrator(
25 const std::set<std::string>& unprotected_pref_names, 25 const std::set<std::string>& unprotected_pref_names,
26 const std::set<std::string>& protected_pref_names, 26 const std::set<std::string>& protected_pref_names,
27 const base::Callback<void(const std::string& key)>& 27 const base::Callback<void(const std::string& key)>&
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 unprotected_store_cleaner, 361 unprotected_store_cleaner,
362 protected_store_cleaner, 362 protected_store_cleaner,
363 register_on_successful_unprotected_store_write_callback, 363 register_on_successful_unprotected_store_write_callback,
364 register_on_successful_protected_store_write_callback, 364 register_on_successful_protected_store_write_callback,
365 unprotected_pref_hash_store.Pass(), 365 unprotected_pref_hash_store.Pass(),
366 protected_pref_hash_store.Pass(), 366 protected_pref_hash_store.Pass(),
367 legacy_pref_hash_store.Pass(), 367 legacy_pref_hash_store.Pass(),
368 unprotected_pref_filter, 368 unprotected_pref_filter,
369 protected_pref_filter)); 369 protected_pref_filter));
370 } 370 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698