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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

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: content/common/gpu/gpu_channel_manager.cc
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index 9a2be1dc80745ac9d9520864cb7c321ab75343c5..93e1556cd5ee8c4904e2b7062efb9e94196e1857 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -243,7 +243,7 @@ void GpuChannelManager::OnUpdateValueState(
it->second->HandleUpdateValueState(target, state);
}
-void GpuChannelManager::OnLoadedShader(std::string program_proto) {
+void GpuChannelManager::OnLoadedShader(const std::string& program_proto) {
if (program_cache())
program_cache()->LoadProgram(program_proto);
}

Powered by Google App Engine
This is Rietveld 408576698