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

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

Issue 9564001: Clean up password manager code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a unit test for sub-frame navigation Created 8 years, 9 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 } 432 }
433 433
434 TestingProfile* TestingProfile::AsTestingProfile() { 434 TestingProfile* TestingProfile::AsTestingProfile() {
435 return this; 435 return this;
436 } 436 }
437 437
438 std::string TestingProfile::GetProfileName() { 438 std::string TestingProfile::GetProfileName() {
439 return std::string("testing_profile"); 439 return std::string("testing_profile");
440 } 440 }
441 441
442 bool TestingProfile::IsOffTheRecord() { 442 bool TestingProfile::IsOffTheRecord() const {
443 return incognito_; 443 return incognito_;
444 } 444 }
445 445
446 void TestingProfile::SetOffTheRecordProfile(Profile* profile) { 446 void TestingProfile::SetOffTheRecordProfile(Profile* profile) {
447 incognito_profile_.reset(profile); 447 incognito_profile_.reset(profile);
448 } 448 }
449 449
450 Profile* TestingProfile::GetOffTheRecordProfile() { 450 Profile* TestingProfile::GetOffTheRecordProfile() {
451 return incognito_profile_.get(); 451 return incognito_profile_.get();
452 } 452 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 759 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
760 return GetExtensionSpecialStoragePolicy(); 760 return GetExtensionSpecialStoragePolicy();
761 } 761 }
762 762
763 void TestingProfile::DestroyWebDataService() { 763 void TestingProfile::DestroyWebDataService() {
764 if (!web_data_service_.get()) 764 if (!web_data_service_.get())
765 return; 765 return;
766 766
767 web_data_service_->Shutdown(); 767 web_data_service_->Shutdown();
768 } 768 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698