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/test_profile_sync_service.cc

Issue 1395103003: Don't use base::MessageLoop::{Quit,QuitClosure} in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_profile_sync_service.h" 5 #include "chrome/browser/sync/test_profile_sync_service.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 ProfileSyncComponentsFactoryMock* 174 ProfileSyncComponentsFactoryMock*
175 TestProfileSyncService::GetSyncApiComponentFactoryMock() { 175 TestProfileSyncService::GetSyncApiComponentFactoryMock() {
176 // We always create a mock factory, see Build* routines. 176 // We always create a mock factory, see Build* routines.
177 return static_cast<ProfileSyncComponentsFactoryMock*>( 177 return static_cast<ProfileSyncComponentsFactoryMock*>(
178 GetSyncClient()->GetSyncApiComponentFactory()); 178 GetSyncClient()->GetSyncApiComponentFactory());
179 } 179 }
180 180
181 void TestProfileSyncService::OnConfigureDone( 181 void TestProfileSyncService::OnConfigureDone(
182 const sync_driver::DataTypeManager::ConfigureResult& result) { 182 const sync_driver::DataTypeManager::ConfigureResult& result) {
183 ProfileSyncService::OnConfigureDone(result); 183 ProfileSyncService::OnConfigureDone(result);
184 base::MessageLoop::current()->Quit(); 184 base::MessageLoop::current()->QuitWhenIdle();
185 } 185 }
186 186
187 UserShare* TestProfileSyncService::GetUserShare() const { 187 UserShare* TestProfileSyncService::GetUserShare() const {
188 return backend_->GetUserShare(); 188 return backend_->GetUserShare();
189 } 189 }
190 190
191 bool TestProfileSyncService::NeedBackup() const { 191 bool TestProfileSyncService::NeedBackup() const {
192 return false; 192 return false;
193 } 193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698