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

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

Issue 4011001: Convert LOG(INFO) to VLOG(1) - chrome/browser/chromeos/login/.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/issue_response_handler.h" 5 #include "chrome/browser/chromeos/login/issue_response_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/browser/net/chrome_url_request_context.h" 9 #include "chrome/browser/net/chrome_url_request_context.h"
10 #include "chrome/common/net/url_fetcher.h" 10 #include "chrome/common/net/url_fetcher.h"
11 #include "net/base/load_flags.h" 11 #include "net/base/load_flags.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // Overridden from AuthResponseHandler. 15 // Overridden from AuthResponseHandler.
16 bool IssueResponseHandler::CanHandle(const GURL& url) { 16 bool IssueResponseHandler::CanHandle(const GURL& url) {
17 return (url.spec().find(AuthResponseHandler::kIssueAuthTokenUrl) != 17 return (url.spec().find(AuthResponseHandler::kIssueAuthTokenUrl) !=
18 std::string::npos); 18 std::string::npos);
19 } 19 }
20 20
21 // Overridden from AuthResponseHandler. 21 // Overridden from AuthResponseHandler.
22 URLFetcher* IssueResponseHandler::Handle( 22 URLFetcher* IssueResponseHandler::Handle(
23 const std::string& to_process, 23 const std::string& to_process,
24 URLFetcher::Delegate* catcher) { 24 URLFetcher::Delegate* catcher) {
25 LOG(INFO) << "Handling IssueAuthToken response"; 25 VLOG(1) << "Handling IssueAuthToken response";
26 token_url_.assign(base::StringPrintf("%s%s", 26 token_url_.assign(base::StringPrintf("%s%s",
27 AuthResponseHandler::kTokenAuthUrl, to_process.c_str())); 27 AuthResponseHandler::kTokenAuthUrl, to_process.c_str()));
28 URLFetcher* fetcher = 28 URLFetcher* fetcher =
29 new URLFetcher(GURL(token_url_), URLFetcher::GET, catcher); 29 new URLFetcher(GURL(token_url_), URLFetcher::GET, catcher);
30 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES); 30 fetcher->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
31 if (getter_) { 31 if (getter_) {
32 LOG(INFO) << "Fetching " << AuthResponseHandler::kTokenAuthUrl; 32 VLOG(1) << "Fetching " << AuthResponseHandler::kTokenAuthUrl;
33 fetcher->set_request_context(getter_); 33 fetcher->set_request_context(getter_);
34 fetcher->Start(); 34 fetcher->Start();
35 } 35 }
36 return fetcher; 36 return fetcher;
37 } 37 }
38 38
39 } // namespace chromeos 39 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/image_downloader.cc ('k') | chrome/browser/chromeos/login/keyboard_switch_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698