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

Unified Diff: chrome/browser/ui/webui/shared_resources_data_source.cc

Issue 11885021: Don't derive from ChromeURLDataManager::DataSource, and instead have these classes implement a dele… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 7 years, 11 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/ui/webui/shared_resources_data_source.cc
===================================================================
--- chrome/browser/ui/webui/shared_resources_data_source.cc (revision 176443)
+++ chrome/browser/ui/webui/shared_resources_data_source.cc (working copy)
@@ -41,13 +41,16 @@
} // namespace
-SharedResourcesDataSource::SharedResourcesDataSource()
- : DataSource(chrome::kChromeUIResourcesHost, NULL) {
+SharedResourcesDataSource::SharedResourcesDataSource() {
}
SharedResourcesDataSource::~SharedResourcesDataSource() {
}
+std::string SharedResourcesDataSource::GetSource() {
+ return chrome::kChromeUIResourcesHost;
+}
+
void SharedResourcesDataSource::StartDataRequest(const std::string& path,
bool is_incognito,
int request_id) {
@@ -57,7 +60,7 @@
scoped_refptr<base::RefCountedStaticMemory> bytes(
rb.LoadDataResourceBytes(idr));
- SendResponse(request_id, bytes);
+ url_data_source()->SendResponse(request_id, bytes);
}
std::string SharedResourcesDataSource::GetMimeType(

Powered by Google App Engine
This is Rietveld 408576698