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

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, 6 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 return this; 391 return this;
392 } 392 }
393 393
394 ChromeAppCacheService* TestingProfile::GetAppCacheService() { 394 ChromeAppCacheService* TestingProfile::GetAppCacheService() {
395 return NULL; 395 return NULL;
396 } 396 }
397 397
398 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { 398 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() {
399 if (!db_tracker_) { 399 if (!db_tracker_) {
400 db_tracker_ = new webkit_database::DatabaseTracker( 400 db_tracker_ = new webkit_database::DatabaseTracker(
401 GetPath(), false, GetExtensionSpecialStoragePolicy(), NULL, NULL); 401 GetPath(), false, false, GetExtensionSpecialStoragePolicy(),
402 NULL, NULL);
402 } 403 }
403 return db_tracker_; 404 return db_tracker_;
404 } 405 }
405 406
406 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() { 407 VisitedLinkMaster* TestingProfile::GetVisitedLinkMaster() {
407 return NULL; 408 return NULL;
408 } 409 }
409 410
410 ExtensionService* TestingProfile::GetExtensionService() { 411 ExtensionService* TestingProfile::GetExtensionService() {
411 return extension_service_.get(); 412 return extension_service_.get();
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 } 793 }
793 794
794 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) 795 DerivedTestingProfile::DerivedTestingProfile(Profile* profile)
795 : original_profile_(profile) {} 796 : original_profile_(profile) {}
796 797
797 DerivedTestingProfile::~DerivedTestingProfile() {} 798 DerivedTestingProfile::~DerivedTestingProfile() {}
798 799
799 ProfileId DerivedTestingProfile::GetRuntimeId() { 800 ProfileId DerivedTestingProfile::GetRuntimeId() {
800 return original_profile_->GetRuntimeId(); 801 return original_profile_->GetRuntimeId();
801 } 802 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698