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

Side by Side Diff: chrome/test/base/testing_profile.cc

Issue 10217010: Completed the code path from AndroidProviderService to HistoryBackend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Init Created 8 years, 8 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 | Annotate | Revision Log
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/test/base/testing_profile.h" 5 #include "chrome/test/base/testing_profile.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 if (delegate_) { 188 if (delegate_) {
189 MessageLoop::current()->PostTask(FROM_HERE, 189 MessageLoop::current()->PostTask(FROM_HERE,
190 base::Bind(&TestingProfile::FinishInit, 190 base::Bind(&TestingProfile::FinishInit,
191 base::Unretained(this))); 191 base::Unretained(this)));
192 } else { 192 } else {
193 FinishInit(); 193 FinishInit();
194 } 194 }
195 } 195 }
196 196
197 void TestingProfile::Init() { 197 void TestingProfile::Init() {
198 if (!file_util::PathExists(profile_path_))
sky 2012/04/25 15:57:25 Why is this needed?
michaelbai 2012/04/26 05:32:48 For the profile created by TestingProfileManager::
199 file_util::CreateDirectory(profile_path_);
200
198 ExtensionSystemFactory::GetInstance()->SetTestingFactory( 201 ExtensionSystemFactory::GetInstance()->SetTestingFactory(
199 this, TestExtensionSystem::Build); 202 this, TestExtensionSystem::Build);
200 203
201 profile_dependency_manager_->CreateProfileServices(this, true); 204 profile_dependency_manager_->CreateProfileServices(this, true);
202 205
203 #if defined(ENABLE_NOTIFICATIONS) 206 #if defined(ENABLE_NOTIFICATIONS)
204 // Install profile keyed service factory hooks for dummy/test services 207 // Install profile keyed service factory hooks for dummy/test services
205 DesktopNotificationServiceFactory::GetInstance()->SetTestingFactory( 208 DesktopNotificationServiceFactory::GetInstance()->SetTestingFactory(
206 this, CreateTestDesktopNotificationService); 209 this, CreateTestDesktopNotificationService);
207 #endif 210 #endif
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 void TestingProfile::DestroyWebDataService() { 714 void TestingProfile::DestroyWebDataService() {
712 if (!web_data_service_.get()) 715 if (!web_data_service_.get())
713 return; 716 return;
714 717
715 web_data_service_->Shutdown(); 718 web_data_service_->Shutdown();
716 } 719 }
717 720
718 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 721 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
719 return true; 722 return true;
720 } 723 }
OLDNEW
« chrome/browser/history/history_marshaling.h ('K') | « chrome/common/chrome_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698