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

Issue 373323003: Cache the current WebPreferences on RenderViewHostImpl. (Closed)

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

Description

Cache the current WebPreferences on RenderViewHostImpl. 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. BUG=390799 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284592

Patch Set 1 #

Patch Set 2 : Lint & cleanup #

Patch Set 3 : Cleanup. #

Patch Set 4 : Cleanup. #

Patch Set 5 : Fix. #

Patch Set 6 : Cleanup. #

Patch Set 7 : Cleanup. #

Patch Set 8 : Cleanup. #

Patch Set 9 : Fix #

Patch Set 10 : Fix. #

Patch Set 11 : Fixes. #

Patch Set 12 : Fixed compile. #

Patch Set 13 : Redo per discussion. #

Patch Set 14 : Fixed. #

Patch Set 15 : Fix. #

Patch Set 16 : Fix. #

Total comments: 8

Patch Set 17 : Addressed code review comments. #

Patch Set 18 : Fix unittest. #

Patch Set 19 : Fix. #

Patch Set 20 : Fix android build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -33 lines) Patch
M android_webview/native/aw_settings.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 chrome/browser/android/voice_search_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 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 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +18 lines, -8 lines 0 comments Download
M content/browser/android/content_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 content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 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 7 8 9 10 11 12 13 14 15 16 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +11 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -1 line 0 comments Download
M content/public/test/web_contents_tester.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
chrishtr
6 years, 5 months ago (2014-07-09 17:28:04 UTC) #1
jam
(I saw you replied on the cr-dev thread and also here; I'll reply here since ...
6 years, 5 months ago (2014-07-15 00:29:59 UTC) #2
chrishtr
On 2014/07/15 00:29:59, jam wrote: > (I saw you replied on the cr-dev thread and ...
6 years, 5 months ago (2014-07-15 04:48:44 UTC) #3
jam
A few comments: -looking closer, it appears that Chrome already has a way to notify ...
6 years, 5 months ago (2014-07-15 19:17:48 UTC) #4
chrishtr
On 2014/07/15 19:17:48, jam wrote: > A few comments: > -looking closer, it appears that ...
6 years, 5 months ago (2014-07-15 20:45:14 UTC) #5
jam
On 2014/07/15 20:45:14, chrishtr wrote: > On 2014/07/15 19:17:48, jam wrote: > > A few ...
6 years, 5 months ago (2014-07-16 05:13:38 UTC) #6
chrishtr
Rewrote the CL according to your suggestions. Turned out to be a lot simpler than ...
6 years, 5 months ago (2014-07-18 23:10:11 UTC) #7
jam
lgtm https://codereview.chromium.org/373323003/diff/290001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/373323003/diff/290001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode60 chrome/browser/ui/prefs/prefs_tab_helper.cc:60: prefs::kWebKitPasswordEchoEnabled, this is the same as above. did ...
6 years, 5 months ago (2014-07-21 17:40:34 UTC) #8
jam
also, please update the cl description
6 years, 5 months ago (2014-07-21 17:40:57 UTC) #9
chrishtr
Also updated CL description. https://codereview.chromium.org/373323003/diff/290001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/373323003/diff/290001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode60 chrome/browser/ui/prefs/prefs_tab_helper.cc:60: prefs::kWebKitPasswordEchoEnabled, On 2014/07/21 17:40:33, jam ...
6 years, 5 months ago (2014-07-21 18:16:07 UTC) #10
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 5 months ago (2014-07-21 23:22:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/373323003/370001
6 years, 5 months ago (2014-07-21 23:24:48 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-22 00:41:15 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 00:44:13 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/81382)
6 years, 5 months ago (2014-07-22 00:44:14 UTC) #15
chrishtr
+michaelbai for approval of android_webview/native
6 years, 5 months ago (2014-07-22 01:54:24 UTC) #16
michaelbai
lgtm for android_webview
6 years, 5 months ago (2014-07-22 02:03:59 UTC) #17
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 5 months ago (2014-07-22 02:04:29 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/373323003/370001
6 years, 5 months ago (2014-07-22 02:05:37 UTC) #19
commit-bot: I haz the power
Change committed as 284592
6 years, 5 months ago (2014-07-22 02:10:45 UTC) #20
Avi (use Gerrit)
On 2014/07/22 02:10:45, I haz the power (commit-bot) wrote: > Change committed as 284592 Chrome ...
6 years, 4 months ago (2014-07-30 20:47:58 UTC) #21
erikchen
6 years, 4 months ago (2014-07-31 02:18:58 UTC) #22
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/429413003/ by erikchen@chromium.org.

The reason for reverting is: Causes DOA on 38-dev.

https://code.google.com/p/chromium/issues/detail?id=398751.

Powered by Google App Engine
This is Rietveld 408576698