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

Unified Diff: headless/app/headless_shell_switches.cc

Issue 2805793003: Add user-agent flag to headless (Closed)
Patch Set: Add shell switches to build file 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
« no previous file with comments | « headless/app/headless_shell_switches.h ('k') | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell_switches.cc
diff --git a/headless/app/headless_shell_switches.cc b/headless/app/headless_shell_switches.cc
index f20a60657f77c388713a5828ba428fe600e2d35a..ec47464f63a7b98042c99aecf5ac34486bea3c50 100644
--- a/headless/app/headless_shell_switches.cc
+++ b/headless/app/headless_shell_switches.cc
@@ -60,5 +60,8 @@ const char kVirtualTimeBudget[] = "virtual-time-budget";
// Sets the initial window size. Provided as string in the format "800,600".
const char kWindowSize[] = "window-size";
+// A string used to override the default user agent with a custom one.
+const char kUserAgent[] = "user-agent";
+
} // namespace switches
} // namespace headless
« no previous file with comments | « headless/app/headless_shell_switches.h ('k') | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698