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

Unified Diff: chrome/browser/chromeos/cros/libcros_service_library.cc

Issue 7438002: Deprecate Profile::GetDefaultRequestContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix other references. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/libcros_service_library.cc
diff --git a/chrome/browser/chromeos/cros/libcros_service_library.cc b/chrome/browser/chromeos/cros/libcros_service_library.cc
index b4f2b328c1a35940573e9ca2a175a81f3158c069..73768211db0af902acda0397f752c452558853cb 100644
--- a/chrome/browser/chromeos/cros/libcros_service_library.cc
+++ b/chrome/browser/chromeos/cros/libcros_service_library.cc
@@ -206,7 +206,8 @@ void LibCrosServiceLibraryImpl::NetworkProxyLibrary::ResolveProxy(
&NetworkProxyLibrary::NotifyProxyResolved, request);
// Retrieve ProxyService from profile's request context.
- net::URLRequestContextGetter* getter = Profile::GetDefaultRequestContext();
+ net::URLRequestContextGetter* getter =
+ Profile::Deprecated::GetDefaultRequestContext();
net::ProxyService* proxy_service = NULL;
if (getter)
proxy_service = getter->GetURLRequestContext()->proxy_service();
@@ -311,4 +312,3 @@ LibCrosServiceLibrary* LibCrosServiceLibrary::GetImpl(bool stub) {
DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::LibCrosServiceLibraryImpl);
DISABLE_RUNNABLE_METHOD_REFCOUNT(
chromeos::LibCrosServiceLibraryImpl::NetworkProxyLibrary);
-

Powered by Google App Engine
This is Rietveld 408576698