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

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

Issue 10797027: Revert 147413 - 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
===================================================================
--- chrome/browser/chromeos/gdata/gdata_operations.cc (revision 147421)
+++ chrome/browser/chromeos/gdata/gdata_operations.cc (working copy)
@@ -502,8 +502,7 @@
return true;
}
-bool AuthorizeAppsOperation::ParseResponse(GDataErrorCode fetch_error_code,
- const std::string& data) {
+base::Value* AuthorizeAppsOperation::ParseResponse(const std::string& data) {
// Parse entry XML.
XmlReader xml_reader;
scoped_ptr<DocumentEntry> entry;
@@ -532,8 +531,7 @@
}
}
- RunCallback(fetch_error_code, link_list.PassAs<base::Value>());
- return true;
+ return link_list.release();
}
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