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

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

Issue 7068025: Revert 86724 - Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/testing_profile.h ('k') | no next file » | 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/testing_profile.h" 5 #include "chrome/test/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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { 670 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() {
671 return NULL; 671 return NULL;
672 } 672 }
673 673
674 NTPResourceCache* TestingProfile::GetNTPResourceCache() { 674 NTPResourceCache* TestingProfile::GetNTPResourceCache() {
675 if (!ntp_resource_cache_.get()) 675 if (!ntp_resource_cache_.get())
676 ntp_resource_cache_.reset(new NTPResourceCache(this)); 676 ntp_resource_cache_.reset(new NTPResourceCache(this));
677 return ntp_resource_cache_.get(); 677 return ntp_resource_cache_.get();
678 } 678 }
679 679
680 StatusTray* TestingProfile::GetStatusTray() {
681 return NULL;
682 }
683
680 FilePath TestingProfile::last_selected_directory() { 684 FilePath TestingProfile::last_selected_directory() {
681 return last_selected_directory_; 685 return last_selected_directory_;
682 } 686 }
683 687
684 void TestingProfile::set_last_selected_directory(const FilePath& path) { 688 void TestingProfile::set_last_selected_directory(const FilePath& path) {
685 last_selected_directory_ = path; 689 last_selected_directory_ = path;
686 } 690 }
687 691
688 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { 692 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() {
689 if (!pref_proxy_config_tracker_) 693 if (!pref_proxy_config_tracker_)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 } 776 }
773 777
774 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) 778 DerivedTestingProfile::DerivedTestingProfile(Profile* profile)
775 : original_profile_(profile) {} 779 : original_profile_(profile) {}
776 780
777 DerivedTestingProfile::~DerivedTestingProfile() {} 781 DerivedTestingProfile::~DerivedTestingProfile() {}
778 782
779 ProfileId DerivedTestingProfile::GetRuntimeId() { 783 ProfileId DerivedTestingProfile::GetRuntimeId() {
780 return original_profile_->GetRuntimeId(); 784 return original_profile_->GetRuntimeId();
781 } 785 }
OLDNEW
« no previous file with comments | « chrome/test/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698