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

Unified Diff: chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.h

Issue 1256803002: [Smart Lock, Prefs reconciliation] Prefs migration logic for desktop platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.h
diff --git a/chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.h b/chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..fca430f0d33bed0d437ce6c957fab4e56c041b0b
--- /dev/null
+++ b/chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORD_MANAGER_SETTING_MIGRATOR_HELPER_H_
+#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORD_MANAGER_SETTING_MIGRATOR_HELPER_H_
+
+namespace base {
+class FieldTrial;
+}
+
+class Profile;
+
+namespace password_manager_setting_migrater_helper {
+
+// Enables the password manager setting migration field trial.
+void SetupFieldTrial();
+
+// Sends NOTIFICATION_PROFILE_ADDED for the |profile|.
+// PasswordManagerSettingMigrater observes this notification to register
+// observers which are required in order to perform migration.
+void SendProfileAddNotification(Profile* profile);
+
+// Checks that on the client number |index| the value for
+// kCredentialsEnableService is equal to |new_pref_value| and the value for
+// kPasswordManagerSavingEnabled is equal to |old_pref_value|.
+void ExpectPrefValuesOnClient(int index,
+ bool new_pref_value,
+ bool old_pref_value);
+
+} // namespace password_manager_setting_migrater_helper
+
+#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_PASSWORD_MANAGER_SETTING_MIGRATOR_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698