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

Unified Diff: components/user_prefs/tracked/tracked_split_preference.cc

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/user_prefs/tracked/tracked_split_preference.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_prefs/tracked/tracked_split_preference.cc
diff --git a/chrome/browser/prefs/tracked/tracked_split_preference.cc b/components/user_prefs/tracked/tracked_split_preference.cc
similarity index 85%
rename from chrome/browser/prefs/tracked/tracked_split_preference.cc
rename to components/user_prefs/tracked/tracked_split_preference.cc
index 074f0035d74af617cc5c041c25c31d1a8da12eb5..37bac10b760a01ebd011bb1283d813a7f8718eb5 100644
--- a/chrome/browser/prefs/tracked/tracked_split_preference.cc
+++ b/components/user_prefs/tracked/tracked_split_preference.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/prefs/tracked/tracked_split_preference.h"
+#include "components/user_prefs/tracked/tracked_split_preference.h"
#include <vector>
#include "base/logging.h"
#include "base/values.h"
-#include "chrome/browser/prefs/tracked/pref_hash_store_transaction.h"
-#include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h"
+#include "components/user_prefs/tracked/pref_hash_store_transaction.h"
+#include "components/user_prefs/tracked/tracked_preference_validation_delegate.h"
TrackedSplitPreference::TrackedSplitPreference(
const std::string& pref_path,
@@ -19,7 +19,10 @@ TrackedSplitPreference::TrackedSplitPreference(
PrefHashFilter::ValueType value_type,
TrackedPreferenceValidationDelegate* delegate)
: pref_path_(pref_path),
- helper_(pref_path, reporting_id, reporting_ids_count, enforcement_level,
+ helper_(pref_path,
+ reporting_id,
+ reporting_ids_count,
+ enforcement_level,
value_type),
delegate_(delegate) {
}
@@ -68,8 +71,8 @@ bool TrackedSplitPreference::EnforceAndReport(
if (value_state == PrefHashStoreTransaction::CHANGED) {
DCHECK(!invalid_keys.empty());
- for (std::vector<std::string>::const_iterator it =
- invalid_keys.begin(); it != invalid_keys.end(); ++it) {
+ for (std::vector<std::string>::const_iterator it = invalid_keys.begin();
+ it != invalid_keys.end(); ++it) {
dict_value->Remove(*it, NULL);
}
} else {
« no previous file with comments | « components/user_prefs/tracked/tracked_split_preference.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698