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

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

Issue 12049052: Move core url data manager classes to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years, 11 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/test/base/testing_profile.h ('k') | content/DEPS » ('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) 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 } 752 }
753 753
754 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 754 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
755 return true; 755 return true;
756 } 756 }
757 757
758 Profile::ExitType TestingProfile::GetLastSessionExitType() { 758 Profile::ExitType TestingProfile::GetLastSessionExitType() {
759 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; 759 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED;
760 } 760 }
761 761
762 base::Callback<ChromeURLDataManagerBackend*(void)>
763 TestingProfile::GetChromeURLDataManagerBackendGetter() const {
764 return base::Callback<ChromeURLDataManagerBackend*(void)>();
765 }
766
767 TestingProfile::Builder::Builder() 762 TestingProfile::Builder::Builder()
768 : build_called_(false), 763 : build_called_(false),
769 delegate_(NULL) { 764 delegate_(NULL) {
770 } 765 }
771 766
772 TestingProfile::Builder::~Builder() { 767 TestingProfile::Builder::~Builder() {
773 } 768 }
774 769
775 void TestingProfile::Builder::SetPath(const FilePath& path) { 770 void TestingProfile::Builder::SetPath(const FilePath& path) {
776 path_ = path; 771 path_ = path;
(...skipping 15 matching lines...) Expand all
792 787
793 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { 788 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
794 DCHECK(!build_called_); 789 DCHECK(!build_called_);
795 build_called_ = true; 790 build_called_ = true;
796 return scoped_ptr<TestingProfile>(new TestingProfile( 791 return scoped_ptr<TestingProfile>(new TestingProfile(
797 path_, 792 path_,
798 delegate_, 793 delegate_,
799 extension_policy_, 794 extension_policy_,
800 pref_service_.Pass())); 795 pref_service_.Pass()));
801 } 796 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698