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

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

Issue 18796007: Content API changes to integrate base/graph. (Closed) Base URL: marinoni.mon:/usr/local/google/src/chromium/src@base_graph_review
Patch Set: Created 7 years, 5 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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/content_browser.gypi » ('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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 } 773 }
774 774
775 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 775 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
776 return true; 776 return true;
777 } 777 }
778 778
779 Profile::ExitType TestingProfile::GetLastSessionExitType() { 779 Profile::ExitType TestingProfile::GetLastSessionExitType() {
780 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; 780 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED;
781 } 781 }
782 782
783 void TestingProfile::VisitDependencyManager(
784 scoped_ptr<content::BrowserContextDependencyVisitor> visitor) {
785 visitor->Visit(NULL);
786 }
787
788 graph::DependencyManagerInstance* TestingProfile::GetDependencyManager() {
789 return NULL;
790 }
791
783 TestingProfile::Builder::Builder() 792 TestingProfile::Builder::Builder()
784 : build_called_(false), 793 : build_called_(false),
785 delegate_(NULL) { 794 delegate_(NULL) {
786 } 795 }
787 796
788 TestingProfile::Builder::~Builder() { 797 TestingProfile::Builder::~Builder() {
789 } 798 }
790 799
791 void TestingProfile::Builder::SetPath(const base::FilePath& path) { 800 void TestingProfile::Builder::SetPath(const base::FilePath& path) {
792 path_ = path; 801 path_ = path;
(...skipping 15 matching lines...) Expand all
808 817
809 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() { 818 scoped_ptr<TestingProfile> TestingProfile::Builder::Build() {
810 DCHECK(!build_called_); 819 DCHECK(!build_called_);
811 build_called_ = true; 820 build_called_ = true;
812 return scoped_ptr<TestingProfile>(new TestingProfile( 821 return scoped_ptr<TestingProfile>(new TestingProfile(
813 path_, 822 path_,
814 delegate_, 823 delegate_,
815 extension_policy_, 824 extension_policy_,
816 pref_service_.Pass())); 825 pref_service_.Pass()));
817 } 826 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698