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

Unified Diff: content/browser/memory/memory_condition_observer.cc

Issue 2877403002: Refactoring: Use const-refs (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_condition_observer.cc
diff --git a/content/browser/memory/memory_condition_observer.cc b/content/browser/memory/memory_condition_observer.cc
index 0891302d8fe63bff1ae53f01c9bb0af8cd502b49..075beab4ceb377d9ecc2ddea062631898e38d884 100644
--- a/content/browser/memory/memory_condition_observer.cc
+++ b/content/browser/memory/memory_condition_observer.cc
@@ -13,7 +13,7 @@ namespace content {
namespace {
-// A expected renderer size. These values come from the median of appropriate
+// An expected renderer size. These values come from the median of appropriate
// UMA stats.
#if defined(OS_ANDROID) || defined(OS_IOS)
const int kDefaultExpectedRendererSizeMB = 40;
@@ -31,7 +31,7 @@ const int kDefaultNewRenderersBackToWarning = 3;
const int kDefaultMonitoringIntervalSeconds = 1;
const int kMonitoringIntervalBackgroundedSeconds = 120;
-void SetIntVariationParameter(const std::map<std::string, std::string> params,
+void SetIntVariationParameter(const std::map<std::string, std::string>& params,
const char* name,
int* target) {
const auto& iter = params.find(name);
@@ -45,7 +45,7 @@ void SetIntVariationParameter(const std::map<std::string, std::string> params,
}
void SetSecondsVariationParameter(
- const std::map<std::string, std::string> params,
+ const std::map<std::string, std::string>& params,
const char* name,
base::TimeDelta* target) {
const auto& iter = params.find(name);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698