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

Unified Diff: content/browser/webui/web_ui_data_source_unittest.cc

Issue 126103003: Changed RefCountedStaticMemory() to accept a void pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/browser/webui/web_ui_data_source_unittest.cc
diff --git a/content/browser/webui/web_ui_data_source_unittest.cc b/content/browser/webui/web_ui_data_source_unittest.cc
index 4dc9c81767171b028a7f0bf6672a87b78fe6c3d9..5ec3450388e6b6e7438be543e16185e2887f9ece 100644
--- a/content/browser/webui/web_ui_data_source_unittest.cc
+++ b/content/browser/webui/web_ui_data_source_unittest.cc
@@ -37,12 +37,10 @@ class TestClient : public TestContentClient {
base::RefCountedStaticMemory* bytes = NULL;
if (resource_id == kDummyDefaultResourceId) {
bytes = new base::RefCountedStaticMemory(
- reinterpret_cast<const unsigned char*>(kDummyDefaultResource),
- arraysize(kDummyDefaultResource));
+ kDummyDefaultResource, arraysize(kDummyDefaultResource));
} else if (resource_id == kDummyResourceId) {
bytes = new base::RefCountedStaticMemory(
- reinterpret_cast<const unsigned char*>(kDummytResource),
- arraysize(kDummytResource));
+ kDummytResource, arraysize(kDummytResource));
}
return bytes;
}

Powered by Google App Engine
This is Rietveld 408576698