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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_helpers.cc

Issue 1272823003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/layout_test/blink_test_helpers.h" 5 #include "content/shell/renderer/layout_test/blink_test_helpers.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 base::FilePath base_path; 119 base::FilePath base_path;
120 PathService::Get(base::DIR_SOURCE_ROOT, &base_path); 120 PathService::Get(base::DIR_SOURCE_ROOT, &base_path);
121 return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit")); 121 return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit"));
122 } 122 }
123 123
124 std::vector<std::string> GetSideloadFontFiles() { 124 std::vector<std::string> GetSideloadFontFiles() {
125 std::vector<std::string> files; 125 std::vector<std::string> files;
126 const base::CommandLine& command_line = 126 const base::CommandLine& command_line =
127 *base::CommandLine::ForCurrentProcess(); 127 *base::CommandLine::ForCurrentProcess();
128 if (command_line.HasSwitch(switches::kRegisterFontFiles)) { 128 if (command_line.HasSwitch(switches::kRegisterFontFiles)) {
129 base::SplitString( 129 files = base::SplitString(
130 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), 130 command_line.GetSwitchValueASCII(switches::kRegisterFontFiles),
131 ';', 131 ";", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
132 &files);
133 } 132 }
134 return files; 133 return files;
135 } 134 }
136 135
137 } // namespace content 136 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | extensions/browser/api/networking_private/networking_private_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698