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

Side by Side Diff: chrome/browser/chromeos/login/cookie_fetcher.cc

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/login/cookie_fetcher.h" 5 #include "chrome/browser/chromeos/login/cookie_fetcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "chrome/browser/chromeos/boot_times_loader.h" 9 #include "chrome/browser/chromeos/boot_times_loader.h"
10 #include "chrome/browser/chromeos/login/client_login_response_handler.h" 10 #include "chrome/browser/chromeos/login/client_login_response_handler.h"
11 #include "chrome/browser/chromeos/login/issue_response_handler.h" 11 #include "chrome/browser/chromeos/login/issue_response_handler.h"
12 #include "chrome/browser/chromeos/login/login_utils.h" 12 #include "chrome/browser/chromeos/login/login_utils.h"
13 #include "chrome/browser/net/chrome_url_request_context.h" 13 #include "chrome/browser/net/chrome_url_request_context.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/profiles/profile_manager.h" 15 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 #include "chrome/common/net/url_fetcher.h"
18 #include "net/url_request/url_request_status.h" 17 #include "net/url_request/url_request_status.h"
19 18
20 namespace chromeos { 19 namespace chromeos {
21 20
22 CookieFetcher::CookieFetcher(Profile* profile) : profile_(profile) { 21 CookieFetcher::CookieFetcher(Profile* profile) : profile_(profile) {
23 CHECK(profile_); 22 CHECK(profile_);
24 client_login_handler_.reset( 23 client_login_handler_.reset(
25 new ClientLoginResponseHandler(profile_->GetRequestContext())); 24 new ClientLoginResponseHandler(profile_->GetRequestContext()));
26 issue_handler_.reset( 25 issue_handler_.reset(
27 new IssueResponseHandler(profile_->GetRequestContext())); 26 new IssueResponseHandler(profile_->GetRequestContext()));
(...skipping 25 matching lines...) Expand all
53 VLOG(1) << "Handling auth token"; 52 VLOG(1) << "Handling auth token";
54 fetcher_.reset(issue_handler_->Handle(data, this)); 53 fetcher_.reset(issue_handler_->Handle(data, this));
55 return; 54 return;
56 } 55 }
57 } 56 }
58 BootTimesLoader::Get()->AddLoginTimeMarker("CookiesFetched", false); 57 BootTimesLoader::Get()->AddLoginTimeMarker("CookiesFetched", false);
59 delete this; 58 delete this;
60 } 59 }
61 60
62 } // namespace chromeos 61 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/cookie_fetcher.h ('k') | chrome/browser/chromeos/login/cookie_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698