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

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

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaned up changes at bluetooth_dispatcher_host.cc Created 4 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
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 <utility> 7 #include <utility>
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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 960
961 content::PermissionManager* TestingProfile::GetPermissionManager() { 961 content::PermissionManager* TestingProfile::GetPermissionManager() {
962 return NULL; 962 return NULL;
963 } 963 }
964 964
965 content::BackgroundSyncController* 965 content::BackgroundSyncController*
966 TestingProfile::GetBackgroundSyncController() { 966 TestingProfile::GetBackgroundSyncController() {
967 return nullptr; 967 return nullptr;
968 } 968 }
969 969
970 content::ChooserPermissionManager*
971 TestingProfile::GetChooserPermissionManager() {
972 return nullptr;
973 }
974
970 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 975 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
971 return true; 976 return true;
972 } 977 }
973 978
974 bool TestingProfile::IsGuestSession() const { 979 bool TestingProfile::IsGuestSession() const {
975 return guest_session_; 980 return guest_session_;
976 } 981 }
977 982
978 Profile::ExitType TestingProfile::GetLastSessionExitType() { 983 Profile::ExitType TestingProfile::GetLastSessionExitType() {
979 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; 984 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 1054
1050 // Note: Owned by |original_profile|. 1055 // Note: Owned by |original_profile|.
1051 return new TestingProfile(path_, delegate_, 1056 return new TestingProfile(path_, delegate_,
1052 #if defined(ENABLE_EXTENSIONS) 1057 #if defined(ENABLE_EXTENSIONS)
1053 extension_policy_, 1058 extension_policy_,
1054 #endif 1059 #endif
1055 std::move(pref_service_), original_profile, 1060 std::move(pref_service_), original_profile,
1056 guest_session_, supervised_user_id_, 1061 guest_session_, supervised_user_id_,
1057 std::move(policy_service_), testing_factories_); 1062 std::move(policy_service_), testing_factories_);
1058 } 1063 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698