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

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

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 months 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) 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>
10 #include <set> 9 #include <set>
11 #include <utility> 10 #include <utility>
12 11
13 #include "base/bind.h" 12 #include "base/bind.h"
14 #include "base/command_line.h" 13 #include "base/command_line.h"
15 #include "base/location.h" 14 #include "base/location.h"
16 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
17 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
18 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
19 #include "base/test/test_timeouts.h" 18 #include "base/test/test_timeouts.h"
20 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
21 #include "base/time/time.h" 20 #include "base/time/time.h"
22 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/sync/profile_sync_service_factory.h" 22 #include "chrome/browser/sync/profile_sync_service_factory.h"
24 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h" 23 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h"
25 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke r.h" 24 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke r.h"
26 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 25 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
27 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 26 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
28 #include "chrome/browser/sync/test/integration/sync_test.h"
29 #include "chrome/browser/ui/singleton_tabs.h" 27 #include "chrome/browser/ui/singleton_tabs.h"
30 #include "chrome/common/chrome_switches.h" 28 #include "chrome/common/chrome_switches.h"
31 #include "components/browser_sync/profile_sync_service.h" 29 #include "components/browser_sync/profile_sync_service.h"
32 #include "components/sync/driver/sync_client.h" 30 #include "components/sync/driver/sync_client.h"
33 #include "components/sync_sessions/open_tabs_ui_delegate.h" 31 #include "components/sync_sessions/open_tabs_ui_delegate.h"
34 #include "content/public/test/test_utils.h" 32 #include "content/public/test/test_utils.h"
35 #include "url/gurl.h" 33 #include "url/gurl.h"
36 34
37 using sync_datatype_helper::test; 35 using sync_datatype_helper::test;
38 36
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 return !checker.TimedOut(); 420 return !checker.TimedOut();
423 } 421 }
424 422
425 void DeleteForeignSession(int index, std::string session_tag) { 423 void DeleteForeignSession(int index, std::string session_tag) {
426 ProfileSyncServiceFactory::GetInstance()->GetForProfile( 424 ProfileSyncServiceFactory::GetInstance()->GetForProfile(
427 test()->GetProfile(index))-> 425 test()->GetProfile(index))->
428 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag); 426 GetOpenTabsUIDelegate()->DeleteForeignSession(session_tag);
429 } 427 }
430 428
431 } // namespace sessions_helper 429 } // namespace sessions_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698