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

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

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added comments in PermissionQueueController Created 6 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 "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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 callback.Run(false); 731 callback.Run(false);
732 } 732 }
733 733
734 void TestingProfile::CancelMIDISysExPermissionRequest( 734 void TestingProfile::CancelMIDISysExPermissionRequest(
735 int render_process_id, 735 int render_process_id,
736 int render_view_id, 736 int render_view_id,
737 int bridge_id, 737 int bridge_id,
738 const GURL& requesting_frame) { 738 const GURL& requesting_frame) {
739 } 739 }
740 740
741 void TestingProfile::RequestProtectedMediaIdentifierPermission(
742 int render_process_id,
743 int render_view_id,
744 int bridge_id,
745 int group_id,
746 const GURL& requesting_frame,
747 const ProtectedMediaIdentifierPermissionCallback& callback) {
748 // Always reject requests for testing.
749 callback.Run(false);
750 }
751
752 void TestingProfile::CancelProtectedMediaIdentifierPermissionRequests(
753 int group_id) {
754 }
755
741 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { 756 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
742 if (!extensions_request_context_.get()) 757 if (!extensions_request_context_.get())
743 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); 758 extensions_request_context_ = new TestExtensionURLRequestContextGetter();
744 return extensions_request_context_.get(); 759 return extensions_request_context_.get();
745 } 760 }
746 761
747 net::SSLConfigService* TestingProfile::GetSSLConfigService() { 762 net::SSLConfigService* TestingProfile::GetSSLConfigService() {
748 if (!GetRequestContext()) 763 if (!GetRequestContext())
749 return NULL; 764 return NULL;
750 return GetRequestContext()->GetURLRequestContext()->ssl_config_service(); 765 return GetRequestContext()->GetURLRequestContext()->ssl_config_service();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 path_, 943 path_,
929 delegate_, 944 delegate_,
930 extension_policy_, 945 extension_policy_,
931 pref_service_.Pass(), 946 pref_service_.Pass(),
932 incognito_, 947 incognito_,
933 guest_session_, 948 guest_session_,
934 managed_user_id_, 949 managed_user_id_,
935 policy_service_.Pass(), 950 policy_service_.Pass(),
936 testing_factories_)); 951 testing_factories_));
937 } 952 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698