Avoid copy in for range loop.

This commit is contained in:
Haojian Wu 2017-03-30 21:56:28 +02:00
parent 5f724e57bc
commit 6ef3be23fd

View file

@ -338,7 +338,7 @@ void CommonWebContentsDelegate::DevToolsRequestFileSystems() {
}
std::vector<FileSystem> file_systems;
for (auto file_system_path : file_system_paths) {
for (const auto& file_system_path : file_system_paths) {
base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path);
std::string file_system_id = RegisterFileSystem(GetDevToolsWebContents(),
path);