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

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

Issue 10799018: gdrive: Get JSON feeds parsing off the UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/chromeos/gdata/gdata_operations.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_operations.cc b/chrome/browser/chromeos/gdata/gdata_operations.cc
index e0057eb392b823f9288ef945bfcda7c37497b55f..b9381ba02c6d1ff0ec1ffcad9fb9e7e0434881db 100644
--- a/chrome/browser/chromeos/gdata/gdata_operations.cc
+++ b/chrome/browser/chromeos/gdata/gdata_operations.cc
@@ -502,7 +502,8 @@ bool AuthorizeAppsOperation::GetContentData(std::string* upload_content_type,
return true;
}
-base::Value* AuthorizeAppsOperation::ParseResponse(const std::string& data) {
+bool AuthorizeAppsOperation::ParseResponse(GDataErrorCode fetch_error_code,
+ const std::string& data) {
// Parse entry XML.
XmlReader xml_reader;
scoped_ptr<DocumentEntry> entry;
@@ -531,7 +532,8 @@ base::Value* AuthorizeAppsOperation::ParseResponse(const std::string& data) {
}
}
- return link_list.release();
+ RunCallback(fetch_error_code, link_list.PassAs<base::Value>());
+ return true;
}
GURL AuthorizeAppsOperation::GetURL() const {
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations.h ('k') | chrome/browser/chromeos/gdata/gdata_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698