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

Unified Diff: chrome/browser/chromeos/login/login_utils.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/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 970cfcc27129d4803688eef915be897bf21c2b62..115ce8ddb459626c30e2e48958a74127d99687ee 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -78,6 +78,8 @@ const char kSwitchFormatString[] = " --%s=\"%s\"";
// User name which is used in the Guest session.
const char kGuestUserName[] = "";
+} // namespace
+
// Resets the proxy configuration service for the default request context.
class ResetDefaultProxyConfigServiceTask : public Task {
Nikita (slow) 2011/07/20 13:55:17 Why move ResetDefaultProxyConfigServiceTask out of
willchan no longer on Chromium 2011/07/20 13:59:07 Since I locked it down with a friend declaration w
public:
@@ -89,7 +91,10 @@ class ResetDefaultProxyConfigServiceTask : public Task {
// Task override.
virtual void Run() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- net::URLRequestContextGetter* getter = Profile::GetDefaultRequestContext();
+ // TODO(willchan): Move this class back into the anonymous namespace after
+ // we stop using this deprecated API.
+ net::URLRequestContextGetter* getter =
+ Profile::Deprecated::GetDefaultRequestContext();
DCHECK(getter);
if (getter) {
getter->GetURLRequestContext()->proxy_service()->ResetConfigService(
@@ -103,8 +108,6 @@ class ResetDefaultProxyConfigServiceTask : public Task {
DISALLOW_COPY_AND_ASSIGN(ResetDefaultProxyConfigServiceTask);
};
-} // namespace
-
class LoginUtilsImpl : public LoginUtils,
public ProfileManagerObserver {
public:
« no previous file with comments | « chrome/browser/chromeos/cros/libcros_service_library.cc ('k') | chrome/browser/importer/toolbar_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698