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

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

Issue 9117048: Revert r118627 and r118640 "Update Gaia URL." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/net/browser_url_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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/mock_url_fetchers.h" 5 #include "chrome/browser/chromeos/login/mock_url_fetchers.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 FailFetcher::~FailFetcher() {} 94 FailFetcher::~FailFetcher() {}
95 95
96 void FailFetcher::Start() { 96 void FailFetcher::Start() {
97 delegate()->OnURLFetchComplete(this); 97 delegate()->OnURLFetchComplete(this);
98 } 98 }
99 99
100 // static 100 // static
101 const char CaptchaFetcher::kCaptchaToken[] = "token"; 101 const char CaptchaFetcher::kCaptchaToken[] = "token";
102 // static 102 // static
103 const char CaptchaFetcher::kCaptchaUrlBase[] = "http://accounts.google.com/"; 103 const char CaptchaFetcher::kCaptchaUrlBase[] = "http://www.google.com/accounts/" ;
104 // static 104 // static
105 const char CaptchaFetcher::kCaptchaUrlFragment[] = "fragment"; 105 const char CaptchaFetcher::kCaptchaUrlFragment[] = "fragment";
106 // static 106 // static
107 const char CaptchaFetcher::kUnlockUrl[] = "http://what.ever"; 107 const char CaptchaFetcher::kUnlockUrl[] = "http://what.ever";
108 108
109 109
110 CaptchaFetcher::CaptchaFetcher(bool success, 110 CaptchaFetcher::CaptchaFetcher(bool success,
111 const GURL& url, 111 const GURL& url,
112 const std::string& results, 112 const std::string& results,
113 content::URLFetcher::RequestType request_type, 113 content::URLFetcher::RequestType request_type,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 VLOG(1) << upload_data(); 164 VLOG(1) << upload_data();
165 if (upload_data().find("HOSTED") == std::string::npos) { 165 if (upload_data().find("HOSTED") == std::string::npos) {
166 VLOG(1) << "HostedFetcher failing request"; 166 VLOG(1) << "HostedFetcher failing request";
167 set_response_code(RC_FORBIDDEN); 167 set_response_code(RC_FORBIDDEN);
168 SetResponseString("Error=BadAuthentication"); 168 SetResponseString("Error=BadAuthentication");
169 } 169 }
170 delegate()->OnURLFetchComplete(this); 170 delegate()->OnURLFetchComplete(this);
171 } 171 }
172 172
173 } // namespace chromeos 173 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/browser_url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698