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

Issue 191093002: Simplify the user agent code some more since after r255534 it's not affected by the site's URL. (Closed)

Created:
6 years, 9 months ago by jam
Modified:
6 years, 9 months ago
CC:
chromium-reviews, tzik, nasko+codewatch_chromium.org, browser-components-watch_chromium.org, kinuko+watch, aandrey+blink_chromium.org, Ilya Sherman, jsbell+serviceworker_chromium.org, cbentzel+watch_chromium.org, vsevik, benquan, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, rouslan+autofillwatch_chromium.org, devtools-reviews_chromium.org, creis+watch_chromium.org, nhiroki, feature-media-reviews_chromium.org, paulirish+reviews_chromium.org, estade+watch_chromium.org, alecflett+watch_chromium.org, michaeln, serviceworker-reviews, yurys, Dane Wallinga, dyu1, horo+watch_chromium.org, pfeldman
Visibility:
Public.

Description

Simplify the user agent code some more since after r255534 it's not affected by the site's URL. Code in content always gets it now from ContentClient::GetUserAgent. In Chrome, there's a GetUserAgent function which returns it. BUG=338338 R=isherman@chromium.org, pauljensen@chromium.org, scottmg@chromium.org, tfarina@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255858 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255877

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 5

Patch Set 9 : fix webkit_unit_tests #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : reupload after revert #

Patch Set 15 : experiment #

Patch Set 16 : experiment in browser only #

Patch Set 17 : fix crash by initializing GetUserAgent on startup as before #

Patch Set 18 : experiment in renderer only #

Patch Set 19 : patchset 15 which works #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -303 lines) Patch
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M android_webview/common/aw_content_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/common/aw_content_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +15 lines, -3 lines 0 comments Download
M android_webview/native/aw_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/autofill/risk/fingerprint_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/auto_enrollment_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/feedback/feedback_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +3 lines, -2 lines 0 comments Download
D chrome/browser/net/basic_http_user_agent_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -33 lines 0 comments Download
D chrome/browser/net/basic_http_user_agent_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -24 lines 0 comments Download
M chrome/browser/net/chrome_http_user_agent_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/net/chrome_http_user_agent_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/net/preconnect.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/profile_resetter/resettable_settings_snapshot.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/task_profiler/task_profiler_data_serializer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/version_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 2 chunks +21 lines, -10 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/content/browser/risk/fingerprint.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/browser/risk/fingerprint.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +12 lines, -6 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +0 lines, -17 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/child/blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -2 lines 0 comments Download
M content/child/npapi/plugin_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/content_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -10 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +3 lines, -10 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -3 lines 0 comments Download
M content/test/test_webkit_platform_support.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/test_webkit_platform_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -0 lines 0 comments Download
M content/test/webkit_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -4 lines 0 comments Download
M net/url_request/http_user_agent_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -3 lines 0 comments Download
M net/url_request/static_http_user_agent_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/static_http_user_agent_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
D webkit/common/user_agent/user_agent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -26 lines 0 comments Download
D webkit/common/user_agent/user_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -75 lines 0 comments Download
M webkit/common/user_agent/webkit_user_agent.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jam
pauljensen: net isherman: components/autofill tfarina: the rest
6 years, 9 months ago (2014-03-07 17:43:52 UTC) #1
pauljensen
net/ lgtm
6 years, 9 months ago (2014-03-07 18:06:31 UTC) #2
jam
+scottmg as a main reviewer
6 years, 9 months ago (2014-03-07 20:57:21 UTC) #3
scottmg
lgtm https://codereview.chromium.org/191093002/diff/130001/content/test/webkit_support.cc File content/test/webkit_support.cc (left): https://codereview.chromium.org/191093002/diff/130001/content/test/webkit_support.cc#oldcode114 content/test/webkit_support.cc:114: "DumpRenderTree/0.0.0.0")); Is this going to break blink tests?
6 years, 9 months ago (2014-03-07 21:19:48 UTC) #4
jam
https://codereview.chromium.org/191093002/diff/130001/content/test/webkit_support.cc File content/test/webkit_support.cc (left): https://codereview.chromium.org/191093002/diff/130001/content/test/webkit_support.cc#oldcode114 content/test/webkit_support.cc:114: "DumpRenderTree/0.0.0.0")); On 2014/03/07 21:19:48, scottmg wrote: > Is this ...
6 years, 9 months ago (2014-03-07 21:34:53 UTC) #5
tfarina
lgtm https://codereview.chromium.org/191093002/diff/130001/content/child/blink_platform_impl.cc File content/child/blink_platform_impl.cc (right): https://codereview.chromium.org/191093002/diff/130001/content/child/blink_platform_impl.cc#newcode366 content/child/blink_platform_impl.cc:366: return WebString::fromUTF8(GetContentClient()->GetUserAgent()); Ah, OK. That is what you ...
6 years, 9 months ago (2014-03-07 22:06:05 UTC) #6
jam
https://codereview.chromium.org/191093002/diff/130001/content/test/webkit_support.cc File content/test/webkit_support.cc (left): https://codereview.chromium.org/191093002/diff/130001/content/test/webkit_support.cc#oldcode114 content/test/webkit_support.cc:114: "DumpRenderTree/0.0.0.0")); looks like this did break webkit_unit_tests, but the ...
6 years, 9 months ago (2014-03-07 23:13:02 UTC) #7
Ilya Sherman
autofill lgtm
6 years, 9 months ago (2014-03-08 00:03:52 UTC) #8
jam
TBR=mkosiba,jamesr for android_webview and webkit
6 years, 9 months ago (2014-03-09 17:49:08 UTC) #9
mkosiba (inactive)
android_webview/ LGTM
6 years, 9 months ago (2014-03-10 11:08:26 UTC) #10
jamesr
6 years, 9 months ago (2014-03-10 19:37:31 UTC) #11
Message was sent while issue was closed.
lgtm. yay!

Powered by Google App Engine
This is Rietveld 408576698