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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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/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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 default_request_context_ = request_context; 710 default_request_context_ = request_context;
711 711
712 return request_context; 712 return request_context;
713 } 713 }
714 714
715 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess( 715 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
716 int renderer_child_id) { 716 int renderer_child_id) {
717 ExtensionService* extension_service = 717 ExtensionService* extension_service =
718 ExtensionSystem::Get(this)->extension_service(); 718 ExtensionSystem::Get(this)->extension_service();
719 if (extension_service) { 719 if (extension_service) {
720 const Extension* installed_app = extension_service-> 720 const extensions::Extension* installed_app = extension_service->
721 GetInstalledAppForRenderer(renderer_child_id); 721 GetInstalledAppForRenderer(renderer_child_id);
722 if (installed_app != NULL && installed_app->is_storage_isolated()) { 722 if (installed_app != NULL && installed_app->is_storage_isolated()) {
723 return GetRequestContextForIsolatedApp(installed_app->id()); 723 return GetRequestContextForIsolatedApp(installed_app->id());
724 } 724 }
725 } 725 }
726 return GetRequestContext(); 726 return GetRequestContext();
727 } 727 }
728 728
729 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() { 729 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() {
730 return io_data_.GetMediaRequestContextGetter(); 730 return io_data_.GetMediaRequestContextGetter();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 if (!path.empty()) 1152 if (!path.empty())
1153 *cache_path = path; 1153 *cache_path = path;
1154 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1154 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1155 prefs_->GetInteger(prefs::kDiskCacheSize); 1155 prefs_->GetInteger(prefs::kDiskCacheSize);
1156 } 1156 }
1157 1157
1158 base::Callback<ChromeURLDataManagerBackend*(void)> 1158 base::Callback<ChromeURLDataManagerBackend*(void)>
1159 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1159 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1160 return io_data_.GetChromeURLDataManagerBackendGetter(); 1160 return io_data_.GetChromeURLDataManagerBackendGetter();
1161 } 1161 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698