Index: content/shell/common/webkit_test_helpers.cc |
diff --git a/content/shell/common/webkit_test_helpers.cc b/content/shell/common/webkit_test_helpers.cc |
index d2c1ea1df3e831eba5b8e96d8b8c59dc383925a4..5c0cf3d1136816afc914a9fee35f261aa529542d 100644 |
--- a/content/shell/common/webkit_test_helpers.cc |
+++ b/content/shell/common/webkit_test_helpers.cc |
@@ -7,6 +7,7 @@ |
#include "base/command_line.h" |
#include "base/file_util.h" |
#include "base/path_service.h" |
+#include "base/strings/string_split.h" |
#include "base/strings/utf_string_conversions.h" |
#include "content/public/common/content_switches.h" |
#include "content/shell/common/shell_switches.h" |
@@ -118,4 +119,16 @@ base::FilePath GetWebKitRootDirFilePath() { |
return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit")); |
} |
+std::vector<std::string> GetSideloadFontFiles() { |
+ std::vector<std::string> files; |
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
+ if (command_line.HasSwitch(switches::kRegisterFontFiles)) { |
+ base::SplitString( |
+ command_line.GetSwitchValueASCII(switches::kRegisterFontFiles), |
+ ';', |
+ &files); |
+ } |
+ return files; |
+} |
+ |
} // namespace content |