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

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: empty line removal 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
709 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() { 710 net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
710 if (!extensions_request_context_.get()) 711 if (!extensions_request_context_.get())
711 extensions_request_context_ = new TestExtensionURLRequestContextGetter(); 712 extensions_request_context_ = new TestExtensionURLRequestContextGetter();
712 return extensions_request_context_.get(); 713 return extensions_request_context_.get();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 891
891 return scoped_ptr<TestingProfile>(new TestingProfile( 892 return scoped_ptr<TestingProfile>(new TestingProfile(
892 path_, 893 path_,
893 delegate_, 894 delegate_,
894 extension_policy_, 895 extension_policy_,
895 pref_service_.Pass(), 896 pref_service_.Pass(),
896 incognito_, 897 incognito_,
897 managed_user_id_, 898 managed_user_id_,
898 testing_factories_)); 899 testing_factories_));
899 } 900 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698