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

Issue 444843002: Cache the current WebPreferences on RenderViewHostImpl (try #2). (Closed)

Created:
6 years, 4 months ago by chrishtr
Modified:
6 years, 4 months ago
Reviewers:
jam, boliu
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org, miu+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Cache the current WebPreferences on RenderViewHostImpl (try #2). This makes lookups of a WebPreferences field fast. In order do this, add code to listen to all preferences updates in order to recompute the cache. The first version was rolled back because some code in Blink that listened for inspector prefs updates incorrectly sent the preference update back to Chromium, causing an infinite loop. BUG=390799 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288438

Patch Set 1 #

Patch Set 2 : Adjust voice_search_tab_helper.cc #

Patch Set 3 : Added defensive code. #

Total comments: 3

Patch Set 4 : Rebased. #

Patch Set 5 : Rebased version of CL 373323003. #

Patch Set 6 : Current CL. #

Total comments: 1

Patch Set 7 : Merged. #

Patch Set 8 : Fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -44 lines) Patch
M android_webview/native/aw_settings.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/android/voice_search_tab_helper.cc View 1 5 7 2 chunks +18 lines, -10 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 7 chunks +18 lines, -8 lines 0 comments Download
M content/browser/android/content_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 chunk +6 lines, -1 line 0 comments Download
M content/public/test/web_contents_tester.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/test_web_contents.h View 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_web_contents.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
chrishtr
https://codereview.chromium.org/444843002/diff/40001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/444843002/diff/40001/content/browser/renderer_host/render_view_host_impl.cc#newcode1441 content/browser/renderer_host/render_view_host_impl.cc:1441: // This is defensive code to avoid infinite loops ...
6 years, 4 months ago (2014-08-06 16:14:59 UTC) #1
boliu
android_webview lgtm https://codereview.chromium.org/444843002/diff/40001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/444843002/diff/40001/content/browser/renderer_host/render_view_host_impl.h#newcode205 content/browser/renderer_host/render_view_host_impl.h:205: virtual void UpdateWebkitPreferences( I think this should ...
6 years, 4 months ago (2014-08-06 16:52:35 UTC) #2
chrishtr
https://codereview.chromium.org/444843002/diff/40001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/444843002/diff/40001/content/browser/renderer_host/render_view_host_impl.h#newcode205 content/browser/renderer_host/render_view_host_impl.h:205: virtual void UpdateWebkitPreferences( On 2014/08/06 16:52:35, boliu wrote: > ...
6 years, 4 months ago (2014-08-06 17:00:52 UTC) #3
jam
Is it possible to upload the rebased original change, and then upload the fixes? that ...
6 years, 4 months ago (2014-08-07 05:51:04 UTC) #4
chrishtr
On 2014/08/07 05:51:04, jam wrote: > Is it possible to upload the rebased original change, ...
6 years, 4 months ago (2014-08-07 17:26:03 UTC) #5
chrishtr
https://codereview.chromium.org/444843002/diff/140001/chrome/browser/android/voice_search_tab_helper.cc File chrome/browser/android/voice_search_tab_helper.cc (right): https://codereview.chromium.org/444843002/diff/140001/chrome/browser/android/voice_search_tab_helper.cc#newcode27 chrome/browser/android/voice_search_tab_helper.cc:27: const CommandLine& command_line = *CommandLine::ForCurrentProcess(); This integrates CL 405253004 ...
6 years, 4 months ago (2014-08-07 17:27:13 UTC) #6
jam
lgtm
6 years, 4 months ago (2014-08-07 18:20:47 UTC) #7
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 4 months ago (2014-08-07 18:21:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/444843002/140001
6 years, 4 months ago (2014-08-07 18:23:39 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 00:48:23 UTC) #10
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
6 years, 4 months ago (2014-08-08 00:48:33 UTC) #11
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 4 months ago (2014-08-08 16:14:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/444843002/140001
6 years, 4 months ago (2014-08-08 16:14:57 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 16:16:12 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/android/voice_search_tab_helper.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 4 months ago (2014-08-08 16:16:13 UTC) #15
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 4 months ago (2014-08-08 16:34:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/444843002/160001
6 years, 4 months ago (2014-08-08 16:34:43 UTC) #17
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 4 months ago (2014-08-08 18:04:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/444843002/180001
6 years, 4 months ago (2014-08-08 18:06:36 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 21:31:36 UTC) #20
Message was sent while issue was closed.
Change committed as 288438

Powered by Google App Engine
This is Rietveld 408576698