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> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
12 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
15 #include "base/test/test_timeouts.h" | 17 #include "base/test/test_timeouts.h" |
16 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 return !checker.TimedOut(); | 432 return !checker.TimedOut(); |
431 } | 433 } |
432 | 434 |
433 void DeleteForeignSession(int index, std::string session_tag) { | 435 void DeleteForeignSession(int index, std::string session_tag) { |
434 ProfileSyncServiceFactory::GetInstance()->GetForProfile( | 436 ProfileSyncServiceFactory::GetInstance()->GetForProfile( |
435 test()->GetProfile(index))-> | 437 test()->GetProfile(index))-> |
436 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); | 438 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); |
437 } | 439 } |
438 | 440 |
439 } // namespace sessions_helper | 441 } // namespace sessions_helper |
OLD | NEW |