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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h

Issue 1358783002: Cleanup: Pass std::string as const reference from chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase against ToT Created 5 years, 3 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/ntp/new_tab_page_sync_handler.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h b/chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h
index 0fa02b2d0e5f0faacd6c8919d4a44b7c5d87e2cd..0e77680fec0e4f292d661a435f0b9f468004fa0d 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h
@@ -50,7 +50,8 @@ class NewTabPageSyncHandler : public content::WebUIMessageHandler,
};
// Helper to invoke the |syncMessageChanged| JS function on the new tab page.
virtual void SendSyncMessageToPage(MessageType type,
- std::string msg, std::string linktext);
+ const std::string& msg,
+ const std::string& linktext);
// Helper to query the sync service and figure out what to send to
// the page, and send it via SendSyncMessageToPage.

Powered by Google App Engine
This is Rietveld 408576698