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

Unified Diff: chrome/browser/browser_main.cc

Issue 11506: Make the net resource interface use StringPiece instead of std::string. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
« no previous file with comments | « no previous file | net/base/net_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 5738)
+++ chrome/browser/browser_main.cc (working copy)
@@ -117,11 +117,11 @@
base::LINKER_INITIALIZED);
// This is called indirectly by the network layer to access resources.
-std::string NetResourceProvider(int key) {
+StringPiece NetResourceProvider(int key) {
if (IDR_DIR_HEADER_HTML == key)
- return lazy_dir_lister.Pointer()->html_data;
+ return StringPiece(lazy_dir_lister.Pointer()->html_data);
- return ResourceBundle::GetSharedInstance().GetDataResource(key);
+ return ResourceBundle::GetSharedInstance().GetRawDataResource(key);
}
// Displays a warning message if the user is running chrome on windows 2000.
« no previous file with comments | « no previous file | net/base/net_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698