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

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

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes 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 9fa8864301a492c4c10fb706bb8e31dec5da76ad..0a970967b8786ff13175cd639397fe000e352dab 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
@@ -49,7 +49,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