diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-19 05:22:35 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-19 05:22:35 +0000 |
commit | 89f19af05e6317424bce504f3a9c861f4d68c518 (patch) | |
tree | 1b7013e52416137911a3051466a896bc756906f5 /chrome/browser/flags_storage.h | |
parent | 30a41e05bfe0f3d7ec13270e62cf6961e798b7be (diff) | |
download | chromium_src-89f19af05e6317424bce504f3a9c861f4d68c518.zip chromium_src-89f19af05e6317424bce504f3a9c861f4d68c518.tar.gz chromium_src-89f19af05e6317424bce504f3a9c861f4d68c518.tar.bz2 |
Use a const ref when passing in a vector of strings.
No need to copy the parameter, even if it's not that big.
BUG=None
Review URL: https://chromiumcodereview.appspot.com/23533068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/flags_storage.h')
-rw-r--r-- | chrome/browser/flags_storage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/flags_storage.h b/chrome/browser/flags_storage.h index 13efbb6..0651f00 100644 --- a/chrome/browser/flags_storage.h +++ b/chrome/browser/flags_storage.h @@ -20,7 +20,7 @@ class FlagsStorage { // Retrieves the flags as a set of strings. virtual std::set<std::string> GetFlags() = 0; // Stores the |flags| and returns true on success. - virtual bool SetFlags(std::set<std::string> flags) = 0; + virtual bool SetFlags(const std::set<std::string>& flags) = 0; }; } // namespace about_flags |