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

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

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed broken include Created 6 years, 4 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
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/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 } 893 }
894 894
895 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 895 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
896 #if defined(ENABLE_EXTENSIONS) 896 #if defined(ENABLE_EXTENSIONS)
897 return GetExtensionSpecialStoragePolicy(); 897 return GetExtensionSpecialStoragePolicy();
898 #else 898 #else
899 return NULL; 899 return NULL;
900 #endif 900 #endif
901 } 901 }
902 902
903 content::SSLHostStateDelegate* TestingProfile::GetSSLHostStateDelegate() {
904 return NULL;
905 }
906
903 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) { 907 bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
904 return true; 908 return true;
905 } 909 }
906 910
907 bool TestingProfile::IsGuestSession() const { 911 bool TestingProfile::IsGuestSession() const {
908 return guest_session_; 912 return guest_session_;
909 } 913 }
910 914
911 Profile::ExitType TestingProfile::GetLastSessionExitType() { 915 Profile::ExitType TestingProfile::GetLastSessionExitType() {
912 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED; 916 return last_session_exited_cleanly_ ? EXIT_NORMAL : EXIT_CRASHED;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 #if defined(ENABLE_EXTENSIONS) 980 #if defined(ENABLE_EXTENSIONS)
977 extension_policy_, 981 extension_policy_,
978 #endif 982 #endif
979 pref_service_.Pass(), 983 pref_service_.Pass(),
980 incognito_, 984 incognito_,
981 guest_session_, 985 guest_session_,
982 supervised_user_id_, 986 supervised_user_id_,
983 policy_service_.Pass(), 987 policy_service_.Pass(),
984 testing_factories_)); 988 testing_factories_));
985 } 989 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698