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

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: Code review comments (tiny). 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/in_process_webkit/dom_storage_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 433 }
434 434
435 void TestingProfile::SetExtensionSpecialStoragePolicy( 435 void TestingProfile::SetExtensionSpecialStoragePolicy(
436 ExtensionSpecialStoragePolicy* extension_special_storage_policy) { 436 ExtensionSpecialStoragePolicy* extension_special_storage_policy) {
437 extension_special_storage_policy_ = extension_special_storage_policy; 437 extension_special_storage_policy_ = extension_special_storage_policy;
438 } 438 }
439 439
440 ExtensionSpecialStoragePolicy* 440 ExtensionSpecialStoragePolicy*
441 TestingProfile::GetExtensionSpecialStoragePolicy() { 441 TestingProfile::GetExtensionSpecialStoragePolicy() {
442 if (!extension_special_storage_policy_.get()) 442 if (!extension_special_storage_policy_.get())
443 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(); 443 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(NULL);
444 return extension_special_storage_policy_.get(); 444 return extension_special_storage_policy_.get();
445 } 445 }
446 446
447 SSLHostState* TestingProfile::GetSSLHostState() { 447 SSLHostState* TestingProfile::GetSSLHostState() {
448 return NULL; 448 return NULL;
449 } 449 }
450 450
451 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() { 451 net::TransportSecurityState* TestingProfile::GetTransportSecurityState() {
452 return NULL; 452 return NULL;
453 } 453 }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 782 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
783 return GetExtensionSpecialStoragePolicy(); 783 return GetExtensionSpecialStoragePolicy();
784 } 784 }
785 785
786 void TestingProfile::DestroyWebDataService() { 786 void TestingProfile::DestroyWebDataService() {
787 if (!web_data_service_.get()) 787 if (!web_data_service_.get())
788 return; 788 return;
789 789
790 web_data_service_->Shutdown(); 790 web_data_service_->Shutdown();
791 } 791 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/in_process_webkit/dom_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698