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

Unified Diff: chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h

Issue 2785083002: Use devtools to set user agent in chromedriver (Closed)
Patch Set: Fix New Tab test Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h
diff --git a/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h b/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h
index 90c85efd566d9baca2aa3010778f708501c92eaf..e0286a6985dcdd683381ba3a369feffb604fb660 100644
--- a/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h
+++ b/chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h
@@ -25,7 +25,8 @@ class Status;
class MobileEmulationOverrideManager : public DevToolsEventListener {
public:
MobileEmulationOverrideManager(DevToolsClient* client,
- const DeviceMetrics* device_metrics);
+ const DeviceMetrics* device_metrics,
+ std::string user_agent);
~MobileEmulationOverrideManager() override;
// Overridden from DevToolsEventListener:
@@ -41,6 +42,7 @@ class MobileEmulationOverrideManager : public DevToolsEventListener {
DevToolsClient* client_;
const DeviceMetrics* overridden_device_metrics_;
+ const std::string overridden_user_agent_;
DISALLOW_COPY_AND_ASSIGN(MobileEmulationOverrideManager);
};

Powered by Google App Engine
This is Rietveld 408576698