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

Unified Diff: chrome/browser/sync/engine/net/gaia_authenticator.cc

Issue 211019: Fix compiling of sync on linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/sync/engine/net/gaia_authenticator.cc
===================================================================
--- chrome/browser/sync/engine/net/gaia_authenticator.cc (revision 26817)
+++ chrome/browser/sync/engine/net/gaia_authenticator.cc (working copy)
@@ -30,7 +30,7 @@
values->clear();
// find the key string
- int end_key_pos = line.find_first_of(key_value_delimiter);
+ size_t end_key_pos = line.find_first_of(key_value_delimiter);
if (end_key_pos == string::npos) {
DLOG(INFO) << "cannot parse key from line: " << line;
return false; // no key
@@ -39,7 +39,7 @@
// find the values string
string remains(line, end_key_pos, line.size() - end_key_pos);
- int begin_values_pos = remains.find_first_not_of(key_value_delimiter);
+ size_t begin_values_pos = remains.find_first_not_of(key_value_delimiter);
if (begin_values_pos == string::npos) {
DLOG(INFO) << "cannot parse value from line: " << line;
return false; // no value
@@ -92,9 +92,9 @@
service_id_(service_id),
gaia_url_(gaia_url),
request_count_(0),
- early_auth_attempt_count_(0),
delay_(0),
- next_allowed_auth_attempt_time_(0) {
+ next_allowed_auth_attempt_time_(0),
+ early_auth_attempt_count_(0) {
GaiaAuthEvent done = { GaiaAuthEvent::GAIA_AUTHENTICATOR_DESTROYED, None,
this };
channel_ = new Channel(done);
« no previous file with comments | « chrome/browser/sync/engine/conflict_resolver.cc ('k') | chrome/browser/sync/engine/net/server_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698