OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/api/push_messaging/sync_setup_helper.h" | 5 #include "chrome/browser/extensions/api/push_messaging/sync_setup_helper.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/history/history_service_factory.h" | 13 #include "chrome/browser/history/history_service_factory.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
17 #include "chrome/browser/sync/profile_sync_service.h" | 17 #include "chrome/browser/sync/profile_sync_service.h" |
18 #include "chrome/browser/sync/profile_sync_service_factory.h" | 18 #include "chrome/browser/sync/profile_sync_service_factory.h" |
19 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 19 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
20 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
21 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
22 #include "chrome/test/base/ui_test_utils.h" | |
23 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
24 | 23 |
25 namespace extensions { | 24 namespace extensions { |
26 | 25 |
27 SyncSetupHelper::SyncSetupHelper() {} | 26 SyncSetupHelper::SyncSetupHelper() {} |
28 | 27 |
29 SyncSetupHelper::~SyncSetupHelper() {} | 28 SyncSetupHelper::~SyncSetupHelper() {} |
30 | 29 |
31 bool SyncSetupHelper::InitializeSync(Profile* profile) { | 30 bool SyncSetupHelper::InitializeSync(Profile* profile) { |
32 profile_ = profile; | 31 profile_ = profile; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return true; | 73 return true; |
75 } | 74 } |
76 | 75 |
77 bool SyncSetupHelper::AwaitQuiescence() { | 76 bool SyncSetupHelper::AwaitQuiescence() { |
78 std::vector<ProfileSyncServiceHarness*> clients; | 77 std::vector<ProfileSyncServiceHarness*> clients; |
79 clients.push_back(client_.get()); | 78 clients.push_back(client_.get()); |
80 return ProfileSyncServiceHarness::AwaitQuiescence(clients); | 79 return ProfileSyncServiceHarness::AwaitQuiescence(clients); |
81 } | 80 } |
82 | 81 |
83 } // namespace extensions | 82 } // namespace extensions |
OLD | NEW |