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

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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved empty CancelMIDISysExPermissionRequest implementations to headers Created 7 years, 1 month 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 net::URLRequestContextGetter* 693 net::URLRequestContextGetter*
694 TestingProfile::GetMediaRequestContextForStoragePartition( 694 TestingProfile::GetMediaRequestContextForStoragePartition(
695 const base::FilePath& partition_path, 695 const base::FilePath& partition_path,
696 bool in_memory) { 696 bool in_memory) {
697 return NULL; 697 return NULL;
698 } 698 }
699 699
700 void TestingProfile::RequestMIDISysExPermission( 700 void TestingProfile::RequestMIDISysExPermission(
701 int render_process_id, 701 int render_process_id,
702 int render_view_id, 702 int render_view_id,
703 int bridge_id,
703 const GURL& requesting_frame, 704 const GURL& requesting_frame,
704 const MIDISysExPermissionCallback& callback) { 705 const MIDISysExPermissionCallback& callback) {
705 // Always reject requests for testing. 706 // Always reject requests for testing.
706 callback.Run(false); 707 callback.Run(false);
707 } 708 }
708 709
710
scherkus (not reviewing) 2013/10/28 20:48:54 remove this extra blank line that seemed to sneak
Kibeom Kim (inactive) 2013/10/29 10:25:10 Done.
709 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { 711 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
710 if (!extensions_request_context_.get()) 712 if (!extensions_request_context_.get())
711 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); 713 extensions_request_context_ = new TestExtensionURLRequestContextGetter();
712 return extensions_request_context_.get(); 714 return extensions_request_context_.get();
713 } 715 }
714 716
715 net::SSLConfigService* TestingProfile::GetSSLConfigService() { 717 net::SSLConfigService* TestingProfile::GetSSLConfigService() {
716 if (!GetRequestContext()) 718 if (!GetRequestContext())
717 return NULL; 719 return NULL;
718 return GetRequestContext()->GetURLRequestContext()->ssl_config_service(); 720 return GetRequestContext()->GetURLRequestContext()->ssl_config_service();
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 892
891 return scoped_ptr<TestingProfile>(new TestingProfile( 893 return scoped_ptr<TestingProfile>(new TestingProfile(
892 path_, 894 path_,
893 delegate_, 895 delegate_,
894 extension_policy_, 896 extension_policy_,
895 pref_service_.Pass(), 897 pref_service_.Pass(),
896 incognito_, 898 incognito_,
897 managed_user_id_, 899 managed_user_id_,
898 testing_factories_)); 900 testing_factories_));
899 } 901 }
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