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

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

Issue 7619010: Session-only local storage cleared on exit. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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/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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 435
436 void TestingProfile::SetExtensionSpecialStoragePolicy( 436 void TestingProfile::SetExtensionSpecialStoragePolicy(
437 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { 437 ExtensionSpecialStoragePolicy* extension_special_storage_policy) {
438 extension_special_storage_policy_ = extension_special_storage_policy; 438 extension_special_storage_policy_ = extension_special_storage_policy;
439 } 439 }
440 440
441 ExtensionSpecialStoragePolicy* 441 ExtensionSpecialStoragePolicy*
442 TestingProfile::GetExtensionSpecialStoragePolicy() { 442 TestingProfile::GetExtensionSpecialStoragePolicy() {
443 if (!extension_special_storage_policy_.get()) 443 if (!extension_special_storage_policy_.get())
444 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(); 444 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL);
445 return extension_special_storage_policy_.get(); 445 return extension_special_storage_policy_.get();
446 } 446 }
447 447
448 SSLHostState* TestingProfile::GetSSLHostState() { 448 SSLHostState* TestingProfile::GetSSLHostState() {
449 return NULL; 449 return NULL;
450 } 450 }
451 451
452 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { 452 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() {
453 return NULL; 453 return NULL;
454 } 454 }
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 792 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
793 return GetExtensionSpecialStoragePolicy(); 793 return GetExtensionSpecialStoragePolicy();
794 } 794 }
795 795
796 void TestingProfile::DestroyWebDataService() { 796 void TestingProfile::DestroyWebDataService() {
797 if (!web_data_service_.get()) 797 if (!web_data_service_.get())
798 return; 798 return;
799 799
800 web_data_service_->Shutdown(); 800 web_data_service_->Shutdown();
801 } 801 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698