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/sync/test/integration/sessions_helper.h" | 5 #include "chrome/browser/sync/test/integration/sessions_helper.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/test/test_timeouts.h" | 17 #include "base/test/test_timeouts.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/sync/profile_sync_service_factory.h" | 21 #include "chrome/browser/sync/profile_sync_service_factory.h" |
22 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h" | 22 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h" |
23 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" | 23 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" |
24 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 24 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
25 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | 25 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
26 #include "chrome/browser/sync/test/integration/sync_test.h" | 26 #include "chrome/browser/sync/test/integration/sync_test.h" |
27 #include "chrome/browser/ui/singleton_tabs.h" | 27 #include "chrome/browser/ui/singleton_tabs.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "components/browser_sync/browser/profile_sync_service.h" | 29 #include "components/browser_sync/browser/profile_sync_service.h" |
30 #include "components/sync_driver/sync_client.h" | 30 #include "components/sync/driver/sync_client.h" |
31 #include "components/sync_sessions/open_tabs_ui_delegate.h" | 31 #include "components/sync_sessions/open_tabs_ui_delegate.h" |
32 #include "content/public/test/test_utils.h" | 32 #include "content/public/test/test_utils.h" |
33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
34 | 34 |
35 using sync_datatype_helper::test; | 35 using sync_datatype_helper::test; |
36 | 36 |
37 namespace sessions_helper { | 37 namespace sessions_helper { |
38 | 38 |
39 ScopedWindowMap::ScopedWindowMap() { | 39 ScopedWindowMap::ScopedWindowMap() { |
40 } | 40 } |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 return !checker.TimedOut(); | 433 return !checker.TimedOut(); |
434 } | 434 } |
435 | 435 |
436 void DeleteForeignSession(int index, std::string session_tag) { | 436 void DeleteForeignSession(int index, std::string session_tag) { |
437 ProfileSyncServiceFactory::GetInstance()->GetForProfile( | 437 ProfileSyncServiceFactory::GetInstance()->GetForProfile( |
438 test()->GetProfile(index))-> | 438 test()->GetProfile(index))-> |
439 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); | 439 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); |
440 } | 440 } |
441 | 441 |
442 } // namespace sessions_helper | 442 } // namespace sessions_helper |
OLD | NEW |