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); |