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

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

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update ProtocolHandlerRegistry to be a ProfileKeyedService in lieu of a refcounted pointer. Created 8 years, 6 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
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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 657
658 bool TestingProfile::IsSameProfile(Profile *p) { 658 bool TestingProfile::IsSameProfile(Profile *p) {
659 return this == p; 659 return this == p;
660 } 660 }
661 661
662 base::Time TestingProfile::GetStartTime() const { 662 base::Time TestingProfile::GetStartTime() const {
663 return start_time_; 663 return start_time_;
664 } 664 }
665 665
666 ProtocolHandlerRegistry* TestingProfile::GetProtocolHandlerRegistry() { 666 ProtocolHandlerRegistry* TestingProfile::GetProtocolHandlerRegistry() {
667 return protocol_handler_registry_.get(); 667 return protocol_handler_registry_;
Elliot Glaysher 2012/06/11 19:43:16 Edit: Now that I look at this, you may just be abl
Steve McKay 2012/06/11 22:09:38 Done.
668 } 668 }
669 669
670 FilePath TestingProfile::last_selected_directory() { 670 FilePath TestingProfile::last_selected_directory() {
671 return last_selected_directory_; 671 return last_selected_directory_;
672 } 672 }
673 673
674 void TestingProfile::set_last_selected_directory(const FilePath& path) { 674 void TestingProfile::set_last_selected_directory(const FilePath& path) {
675 last_selected_directory_ = path; 675 last_selected_directory_ = path;
676 } 676 }
677 677
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 } 713 }
714 714
715 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 715 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
716 return true; 716 return true;
717 } 717 }
718 718
719 base::Callback<ChromeURLDataManagerBackend*(void)> 719 base::Callback<ChromeURLDataManagerBackend*(void)>
720 TestingProfile::GetChromeURLDataManagerBackendGetter() const { 720 TestingProfile::GetChromeURLDataManagerBackendGetter() const {
721 return base::Callback<ChromeURLDataManagerBackend*(void)>(); 721 return base::Callback<ChromeURLDataManagerBackend*(void)>();
722 } 722 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698