Index: headless/public/headless_browser.cc |
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc |
index bbc644b231cf9e37499e42661f8708a51aaa6cd8..44eb0833bd2c742e5ef73c5366142b5dea1fb8c5 100644 |
--- a/headless/public/headless_browser.cc |
+++ b/headless/public/headless_browser.cc |
@@ -2,9 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/public/common/user_agent.h" |
#include "headless/public/headless_browser.h" |
+#include <utility> |
+ |
+#include "content/public/common/user_agent.h" |
+ |
using Options = headless::HeadlessBrowser::Options; |
using Builder = headless::HeadlessBrowser::Options::Builder; |
@@ -71,13 +74,13 @@ Builder& Builder::SetDisableSandbox(bool disable_sandbox) { |
return *this; |
} |
-Builder& Builder::SetProtocolHandlers(ProtocolHandlerMap protocol_handlers) { |
- options_.protocol_handlers = std::move(protocol_handlers); |
+Builder& Builder::SetGLImplementation(const std::string& gl_implementation) { |
+ options_.gl_implementation = gl_implementation; |
return *this; |
} |
-Builder& Builder::SetGLImplementation(const std::string& gl_implementation) { |
- options_.gl_implementation = gl_implementation; |
+Builder& Builder::SetUserDataDir(const base::FilePath& user_data_dir) { |
+ options_.user_data_dir = user_data_dir; |
return *this; |
} |