OLD | NEW |
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/off_the_record_profile_impl.h" | 5 #include "chrome/browser/profiles/off_the_record_profile_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 bool in_memory) { | 279 bool in_memory) { |
280 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) | 280 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) |
281 .get(); | 281 .get(); |
282 } | 282 } |
283 | 283 |
284 void OffTheRecordProfileImpl::RequestMIDISysExPermission( | 284 void OffTheRecordProfileImpl::RequestMIDISysExPermission( |
285 int render_process_id, | 285 int render_process_id, |
286 int render_view_id, | 286 int render_view_id, |
287 const GURL& requesting_frame, | 287 const GURL& requesting_frame, |
288 const MIDISysExPermissionCallback& callback) { | 288 const MIDISysExPermissionCallback& callback) { |
289 // TODO(toyoshim): Implement. | 289 // TODO(toyoshim): Implement. http://crbug.com/257618 . |
290 callback.Run(false); | 290 callback.Run(false); |
291 } | 291 } |
292 | 292 |
293 net::URLRequestContextGetter* | 293 net::URLRequestContextGetter* |
294 OffTheRecordProfileImpl::GetRequestContextForExtensions() { | 294 OffTheRecordProfileImpl::GetRequestContextForExtensions() { |
295 return io_data_.GetExtensionsRequestContextGetter().get(); | 295 return io_data_.GetExtensionsRequestContextGetter().get(); |
296 } | 296 } |
297 | 297 |
298 net::URLRequestContextGetter* | 298 net::URLRequestContextGetter* |
299 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( | 299 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 #if defined(OS_CHROMEOS) | 479 #if defined(OS_CHROMEOS) |
480 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 480 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
481 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 481 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
482 g_browser_process->local_state()); | 482 g_browser_process->local_state()); |
483 } | 483 } |
484 #endif // defined(OS_CHROMEOS) | 484 #endif // defined(OS_CHROMEOS) |
485 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 485 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
486 GetPrefs(), g_browser_process->local_state()); | 486 GetPrefs(), g_browser_process->local_state()); |
487 } | 487 } |
488 | 488 |
OLD | NEW |