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

Unified Diff: chrome/browser/chromeos/gdata/gdata_wapi_parser.cc

Issue 10823226: Get AboutResource as account metadata for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_wapi_parser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc b/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
index f604f3559bdeb91995bfc45d122d52ac06869d69..909f96dede7d1120f904f4b93912012985201910 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
@@ -834,9 +834,9 @@ void DocumentFeed::RegisterJSONConverter(
kItemsPerPageField, &DocumentFeed::items_per_page_, &base::StringToInt);
converter->RegisterStringField(kTitleTField, &DocumentFeed::title_);
converter->RegisterRepeatedMessage(kEntryField, &DocumentFeed::entries_);
- converter->RegisterCustomField<int>(
+ converter->RegisterCustomField<int64>(
kLargestChangestampField, &DocumentFeed::largest_changestamp_,
- &base::StringToInt);
+ &base::StringToInt64);
}
bool DocumentFeed::Parse(const base::Value& value) {
@@ -994,10 +994,10 @@ void AccountMetadataFeed::RegisterJSONConverter(
kQuotaBytesUsedField,
&AccountMetadataFeed::quota_bytes_used_,
&base::StringToInt64);
- converter->RegisterCustomField<int>(
+ converter->RegisterCustomField<int64>(
kLargestChangestampField,
&AccountMetadataFeed::largest_changestamp_,
- &base::StringToInt);
+ &base::StringToInt64);
converter->RegisterRepeatedMessage(kInstalledAppField,
&AccountMetadataFeed::installed_apps_);
}
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_wapi_parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698