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

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

Issue 7234014: Move code to clear web databases on shutdown to the database tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 5 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) 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/test/testing_profile.h" 5 #include "chrome/test/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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 return this; 390 return this;
391 } 391 }
392 392
393 ChromeAppCacheService* TestingProfile::GetAppCacheService() { 393 ChromeAppCacheService* TestingProfile::GetAppCacheService() {
394 return NULL; 394 return NULL;
395 } 395 }
396 396
397 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { 397 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() {
398 if (!db_tracker_) { 398 if (!db_tracker_) {
399 db_tracker_ = new webkit_database::DatabaseTracker( 399 db_tracker_ = new webkit_database::DatabaseTracker(
400 GetPath(), false, GetExtensionSpecialStoragePolicy(), NULL, NULL); 400 GetPath(), false, false, GetExtensionSpecialStoragePolicy(),
401 NULL, NULL);
401 } 402 }
402 return db_tracker_; 403 return db_tracker_;
403 } 404 }
404 405
405 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() { 406 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() {
406 return NULL; 407 return NULL;
407 } 408 }
408 409
409 ExtensionService* TestingProfile::GetExtensionService() { 410 ExtensionService* TestingProfile::GetExtensionService() {
410 return extension_service_.get(); 411 return extension_service_.get();
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 } 786 }
786 787
787 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) 788 DerivedTestingProfile::DerivedTestingProfile(Profile* profile)
788 : original_profile_(profile) {} 789 : original_profile_(profile) {}
789 790
790 DerivedTestingProfile::~DerivedTestingProfile() {} 791 DerivedTestingProfile::~DerivedTestingProfile() {}
791 792
792 ProfileId DerivedTestingProfile::GetRuntimeId() { 793 ProfileId DerivedTestingProfile::GetRuntimeId() {
793 return original_profile_->GetRuntimeId(); 794 return original_profile_->GetRuntimeId();
794 } 795 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | webkit/database/database_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698