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

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

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 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 "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 return GetExtensionSpecialStoragePolicy(); 1040 return GetExtensionSpecialStoragePolicy();
1041 #else 1041 #else
1042 return NULL; 1042 return NULL;
1043 #endif 1043 #endif
1044 } 1044 }
1045 1045
1046 content::SSLHostStateDelegate* TestingProfile::GetSSLHostStateDelegate() { 1046 content::SSLHostStateDelegate* TestingProfile::GetSSLHostStateDelegate() {
1047 return NULL; 1047 return NULL;
1048 } 1048 }
1049 1049
1050 content::PermissionManager* TestingProfile::GetPermissionManager() {
1051 return NULL;
1052 }
1053
1050 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 1054 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
1051 return true; 1055 return true;
1052 } 1056 }
1053 1057
1054 bool TestingProfile::IsGuestSession() const { 1058 bool TestingProfile::IsGuestSession() const {
1055 return guest_session_; 1059 return guest_session_;
1056 } 1060 }
1057 1061
1058 Profile::ExitType TestingProfile::GetLastSessionExitType() { 1062 Profile::ExitType TestingProfile::GetLastSessionExitType() {
1059 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; 1063 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 #if defined(ENABLE_EXTENSIONS) 1141 #if defined(ENABLE_EXTENSIONS)
1138 extension_policy_, 1142 extension_policy_,
1139 #endif 1143 #endif
1140 pref_service_.Pass(), 1144 pref_service_.Pass(),
1141 original_profile, 1145 original_profile,
1142 guest_session_, 1146 guest_session_,
1143 supervised_user_id_, 1147 supervised_user_id_,
1144 policy_service_.Pass(), 1148 policy_service_.Pass(),
1145 testing_factories_); 1149 testing_factories_);
1146 } 1150 }
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698