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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 19980004: Web MIDI: add kDumpRenderTree flag check to ShellBrowserContext::RequestMIDI... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/browser/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 bool in_memory) { 860 bool in_memory) {
861 return io_data_ 861 return io_data_
862 .GetIsolatedMediaRequestContextGetter(partition_path, in_memory).get(); 862 .GetIsolatedMediaRequestContextGetter(partition_path, in_memory).get();
863 } 863 }
864 864
865 void ProfileImpl::RequestMIDISysExPermission( 865 void ProfileImpl::RequestMIDISysExPermission(
866 int render_process_id, 866 int render_process_id,
867 int render_view_id, 867 int render_view_id,
868 const GURL& requesting_frame, 868 const GURL& requesting_frame,
869 const MIDISysExPermissionCallback& callback) { 869 const MIDISysExPermissionCallback& callback) {
870 // TODO(toyoshim): Implement. 870 // TODO(toyoshim): Implement. http://crbug.com/257618 .
871 callback.Run(false); 871 callback.Run(false);
872 } 872 }
873 873
874 content::ResourceContext* ProfileImpl::GetResourceContext() { 874 content::ResourceContext* ProfileImpl::GetResourceContext() {
875 return io_data_.GetResourceContext(); 875 return io_data_.GetResourceContext();
876 } 876 }
877 877
878 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() { 878 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
879 return io_data_.GetExtensionsRequestContextGetter().get(); 879 return io_data_.GetExtensionsRequestContextGetter().get();
880 } 880 }
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 #if defined(OS_CHROMEOS) 1165 #if defined(OS_CHROMEOS)
1166 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 1166 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
1167 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 1167 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
1168 g_browser_process->local_state()); 1168 g_browser_process->local_state());
1169 } 1169 }
1170 #endif // defined(OS_CHROMEOS) 1170 #endif // defined(OS_CHROMEOS)
1171 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 1171 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
1172 GetPrefs(), g_browser_process->local_state()); 1172 GetPrefs(), g_browser_process->local_state());
1173 } 1173 }
1174 1174
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698