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

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

Issue 10697079: Upstreaming Cygprofile for Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
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/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/file_path.h" 10 #include "base/file_path.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 GetDownloadManagerDelegate(); 255 GetDownloadManagerDelegate();
256 } 256 }
257 257
258 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { 258 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() {
259 return io_data_.GetMainRequestContextGetter(); 259 return io_data_.GetMainRequestContextGetter();
260 } 260 }
261 261
262 net::URLRequestContextGetter* 262 net::URLRequestContextGetter*
263 OffTheRecordProfileImpl::GetRequestContextForRenderProcess( 263 OffTheRecordProfileImpl::GetRequestContextForRenderProcess(
264 int renderer_child_id) { 264 int renderer_child_id) {
265 #if !defined(OS_ANDROID)
266 // Chrome for Android doesn't have extensions.
265 if (GetExtensionService()) { 267 if (GetExtensionService()) {
266 const extensions::Extension* installed_app = GetExtensionService()-> 268 const extensions::Extension* installed_app = GetExtensionService()->
267 GetInstalledAppForRenderer(renderer_child_id); 269 GetInstalledAppForRenderer(renderer_child_id);
268 if (installed_app != NULL && installed_app->is_storage_isolated()) { 270 if (installed_app != NULL && installed_app->is_storage_isolated()) {
269 return GetRequestContextForIsolatedApp(installed_app->id()); 271 return GetRequestContextForIsolatedApp(installed_app->id());
270 } 272 }
271 } 273 }
274 #endif
272 return GetRequestContext(); 275 return GetRequestContext();
273 } 276 }
274 277
275 net::URLRequestContextGetter* 278 net::URLRequestContextGetter*
276 OffTheRecordProfileImpl::GetRequestContextForMedia() { 279 OffTheRecordProfileImpl::GetRequestContextForMedia() {
277 // In OTR mode, media request context is the same as the original one. 280 // In OTR mode, media request context is the same as the original one.
278 return io_data_.GetMainRequestContextGetter(); 281 return io_data_.GetMainRequestContextGetter();
279 } 282 }
280 283
281 net::URLRequestContextGetter* 284 net::URLRequestContextGetter*
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 if (!profile) 473 if (!profile)
471 profile = new OffTheRecordProfileImpl(this); 474 profile = new OffTheRecordProfileImpl(this);
472 profile->Init(); 475 profile->Init();
473 return profile; 476 return profile;
474 } 477 }
475 478
476 base::Callback<ChromeURLDataManagerBackend*(void)> 479 base::Callback<ChromeURLDataManagerBackend*(void)>
477 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 480 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
478 return io_data_.GetChromeURLDataManagerBackendGetter(); 481 return io_data_.GetChromeURLDataManagerBackendGetter();
479 } 482 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698