Chromium Code Reviews| 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: |