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

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 2 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 default_request_context_ = request_context; 713 default_request_context_ = request_context;
714 714
715 return request_context; 715 return request_context;
716 } 716 }
717 717
718 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess( 718 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
719 int renderer_child_id) { 719 int renderer_child_id) {
720 ExtensionService* extension_service = 720 ExtensionService* extension_service =
721 ExtensionSystem::Get(this)->extension_service(); 721 ExtensionSystem::Get(this)->extension_service();
722 if (extension_service) { 722 if (extension_service) {
723 const Extension* installed_app = extension_service-> 723 const extensions::Extension* installed_app = extension_service->
724 GetInstalledAppForRenderer(renderer_child_id); 724 GetInstalledAppForRenderer(renderer_child_id);
725 if (installed_app != NULL && installed_app->is_storage_isolated()) { 725 if (installed_app != NULL && installed_app->is_storage_isolated()) {
726 return GetRequestContextForIsolatedApp(installed_app->id()); 726 return GetRequestContextForIsolatedApp(installed_app->id());
727 } 727 }
728 } 728 }
729 return GetRequestContext(); 729 return GetRequestContext();
730 } 730 }
731 731
732 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() { 732 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForMedia() {
733 return io_data_.GetMediaRequestContextGetter(); 733 return io_data_.GetMediaRequestContextGetter();
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 if (!path.empty()) 1174 if (!path.empty())
1175 *cache_path = path; 1175 *cache_path = path;
1176 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1176 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1177 prefs_->GetInteger(prefs::kDiskCacheSize); 1177 prefs_->GetInteger(prefs::kDiskCacheSize);
1178 } 1178 }
1179 1179
1180 base::Callback<ChromeURLDataManagerBackend*(void)> 1180 base::Callback<ChromeURLDataManagerBackend*(void)>
1181 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1181 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1182 return io_data_.GetChromeURLDataManagerBackendGetter(); 1182 return io_data_.GetChromeURLDataManagerBackendGetter();
1183 } 1183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698