diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-24 20:48:29 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-24 20:48:29 +0000 |
commit | f5db58da8a081fe91b25d7a373987c97d397f378 (patch) | |
tree | 52a8f3bea7d1ffecbc45d652e6caea2fc8dac4b3 /webkit/tools | |
parent | 05992b2a814db10d48e4deaeb9fea873e37bd329 (diff) | |
download | chromium_src-f5db58da8a081fe91b25d7a373987c97d397f378.zip chromium_src-f5db58da8a081fe91b25d7a373987c97d397f378.tar.gz chromium_src-f5db58da8a081fe91b25d7a373987c97d397f378.tar.bz2 |
Add a command-line switch to change the user agent.BUG=757345
Review URL: http://codereview.chromium.org/4059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/test_shell.cc | 1 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_request_context.cc | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index 283e730..f11d21a 100644 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -247,7 +247,6 @@ void TestShell::ResetWebPreferences() { web_prefs_->shrinks_standalone_images_to_fit = false; web_prefs_->uses_universal_detector = false; web_prefs_->text_areas_are_resizable = false; - web_prefs_->user_agent = webkit_glue::GetDefaultUserAgent(); web_prefs_->dashboard_compatibility_mode = false; web_prefs_->java_enabled = true; web_prefs_->allow_scripts_to_close_windows = false; diff --git a/webkit/tools/test_shell/test_shell_request_context.cc b/webkit/tools/test_shell/test_shell_request_context.cc index 2fdf164..9767b83 100644 --- a/webkit/tools/test_shell/test_shell_request_context.cc +++ b/webkit/tools/test_shell/test_shell_request_context.cc @@ -22,7 +22,7 @@ void TestShellRequestContext::Init( net::HttpCache::Mode cache_mode) { cookie_store_ = new net::CookieMonster(); - user_agent_ = webkit_glue::GetDefaultUserAgent(); + user_agent_ = webkit_glue::GetUserAgent(); // hard-code A-L and A-C for test shells accept_language_ = "en-us,en"; |