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/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" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 return !checker.TimedOut(); | 432 return !checker.TimedOut(); |
433 } | 433 } |
434 | 434 |
435 void DeleteForeignSession(int index, std::string session_tag) { | 435 void DeleteForeignSession(int index, std::string session_tag) { |
436 ProfileSyncServiceFactory::GetInstance()->GetForProfile( | 436 ProfileSyncServiceFactory::GetInstance()->GetForProfile( |
437 test()->GetProfile(index))-> | 437 test()->GetProfile(index))-> |
438 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); | 438 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); |
439 } | 439 } |
440 | 440 |
441 } // namespace sessions_helper | 441 } // namespace sessions_helper |
OLD | NEW |