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

Side by Side Diff: chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/test/integration/password_manager_setting_migrator _helper.h" 5 #include "chrome/browser/sync/test/integration/password_manager_setting_migrator _helper.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h" 10 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "chrome/browser/sync/profile_sync_service_factory.h" 12 #include "chrome/browser/sync/profile_sync_service_factory.h"
14 #include "chrome/browser/sync/test/integration/preferences_helper.h" 13 #include "chrome/browser/sync/test/integration/preferences_helper.h"
14 #include "components/browser_sync/browser/profile_sync_service.h"
15 #include "components/password_manager/core/common/password_manager_pref_names.h" 15 #include "components/password_manager/core/common/password_manager_pref_names.h"
16 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h" 16 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h"
17 #include "content/public/browser/notification_details.h" 17 #include "content/public/browser/notification_details.h"
18 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 #include "content/public/browser/notification_source.h" 19 #include "content/public/browser/notification_source.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 using preferences_helper::GetPrefs; 22 using preferences_helper::GetPrefs;
23 23
24 namespace { 24 namespace {
(...skipping 19 matching lines...) Expand all
44 bool old_pref_value) { 44 bool old_pref_value) {
45 using password_manager::prefs::kCredentialsEnableService; 45 using password_manager::prefs::kCredentialsEnableService;
46 using password_manager::prefs::kPasswordManagerSavingEnabled; 46 using password_manager::prefs::kPasswordManagerSavingEnabled;
47 EXPECT_EQ(new_pref_value, 47 EXPECT_EQ(new_pref_value,
48 GetPrefs(index)->GetBoolean(kCredentialsEnableService)); 48 GetPrefs(index)->GetBoolean(kCredentialsEnableService));
49 EXPECT_EQ(old_pref_value, 49 EXPECT_EQ(old_pref_value,
50 GetPrefs(index)->GetBoolean(kPasswordManagerSavingEnabled)); 50 GetPrefs(index)->GetBoolean(kPasswordManagerSavingEnabled));
51 } 51 }
52 52
53 } // namespace password_manager_setting_migrater_helper 53 } // namespace password_manager_setting_migrater_helper
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/p2p_sync_refresher.cc ('k') | chrome/browser/sync/test/integration/passwords_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698