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 { |