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

Unified Diff: content/browser/histogram_internals_request_job.cc

Issue 10696135: Offload disk accesses to WorkerPool in ExtensionProtocolHandler (Closed) Base URL: https://src.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: content/browser/histogram_internals_request_job.cc
===================================================================
--- content/browser/histogram_internals_request_job.cc (revision 147715)
+++ content/browser/histogram_internals_request_job.cc (working copy)
@@ -9,6 +9,7 @@
#include "content/browser/histogram_synchronizer.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
+#include "net/base/net_errors.h"
#include "net/url_request/url_request.h"
namespace content {
@@ -59,15 +60,17 @@
base::StatisticsRecorder::WriteHTMLGraph(unescaped_query, data);
}
-bool HistogramInternalsRequestJob::GetData(std::string* mime_type,
- std::string* charset,
- std::string* data) const {
+int HistogramInternalsRequestJob::GetData(
+ std::string* mime_type,
+ std::string* charset,
+ std::string* data,
+ const net::CompletionCallback& callback) const {
mime_type->assign("text/html");
charset->assign("UTF8");
data->clear();
AboutHistogram(data, path_);
- return true;
+ return net::OK;
}
} // namespace content
« no previous file with comments | « content/browser/histogram_internals_request_job.h ('k') | content/browser/renderer_host/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698