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

Side by Side Diff: chrome/browser/sync/profile_sync_test_util.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/profile_sync_test_util.h" 5 #include "chrome/browser/sync/profile_sync_test_util.h"
6 6
7 #include <utility>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/location.h" 10 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
11 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
13 #include "chrome/browser/signin/signin_manager_factory.h" 15 #include "chrome/browser/signin/signin_manager_factory.h"
14 #include "chrome/browser/sync/chrome_sync_client.h" 16 #include "chrome/browser/sync/chrome_sync_client.h"
15 #include "chrome/common/channel_info.h" 17 #include "chrome/common/channel_info.h"
16 #include "chrome/test/base/testing_profile.h" 18 #include "chrome/test/base/testing_profile.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 ->SetAuthenticatedAccountInfo("12345", "foo"); 70 ->SetAuthenticatedAccountInfo("12345", "foo");
69 return profile; 71 return profile;
70 } 72 }
71 73
72 std::unique_ptr<KeyedService> BuildMockProfileSyncService( 74 std::unique_ptr<KeyedService> BuildMockProfileSyncService(
73 content::BrowserContext* context) { 75 content::BrowserContext* context) {
74 return base::MakeUnique<browser_sync::ProfileSyncServiceMock>( 76 return base::MakeUnique<browser_sync::ProfileSyncServiceMock>(
75 CreateProfileSyncServiceParamsForTest( 77 CreateProfileSyncServiceParamsForTest(
76 Profile::FromBrowserContext(context))); 78 Profile::FromBrowserContext(context)));
77 } 79 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_factory_unittest.cc ('k') | chrome/browser/sync/sync_error_notifier_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698