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

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

Issue 6914021: Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://chrome-svn/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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() { 669 WebKitContext* TestingProfile::GetOffTheRecordWebKitContext() {
670 return NULL; 670 return NULL;
671 } 671 }
672 672
673 NTPResourceCache* TestingProfile::GetNTPResourceCache() { 673 NTPResourceCache* TestingProfile::GetNTPResourceCache() {
674 if (!ntp_resource_cache_.get()) 674 if (!ntp_resource_cache_.get())
675 ntp_resource_cache_.reset(new NTPResourceCache(this)); 675 ntp_resource_cache_.reset(new NTPResourceCache(this));
676 return ntp_resource_cache_.get(); 676 return ntp_resource_cache_.get();
677 } 677 }
678 678
679 StatusTray* TestingProfile::GetStatusTray() {
680 return NULL;
681 }
682
683 FilePath TestingProfile::last_selected_directory() { 679 FilePath TestingProfile::last_selected_directory() {
684 return last_selected_directory_; 680 return last_selected_directory_;
685 } 681 }
686 682
687 void TestingProfile::set_last_selected_directory(const FilePath& path) { 683 void TestingProfile::set_last_selected_directory(const FilePath& path) {
688 last_selected_directory_ = path; 684 last_selected_directory_ = path;
689 } 685 }
690 686
691 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { 687 PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() {
692 if (!pref_proxy_config_tracker_) 688 if (!pref_proxy_config_tracker_)
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 } 769 }
774 770
775 DerivedTestingProfile::DerivedTestingProfile(Profile* profile) 771 DerivedTestingProfile::DerivedTestingProfile(Profile* profile)
776 : original_profile_(profile) {} 772 : original_profile_(profile) {}
777 773
778 DerivedTestingProfile::~DerivedTestingProfile() {} 774 DerivedTestingProfile::~DerivedTestingProfile() {}
779 775
780 ProfileId DerivedTestingProfile::GetRuntimeId() { 776 ProfileId DerivedTestingProfile::GetRuntimeId() {
781 return original_profile_->GetRuntimeId(); 777 return original_profile_->GetRuntimeId();
782 } 778 }
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