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

Issue 373623002: Convert remaining WebContentsObservers loading callbacks to use RFH. (Closed)

Created:
6 years, 5 months ago by dcheng
Modified:
6 years, 5 months ago
CC:
cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, davidben+watch_chromium.org, David Black, dhollowa+watch_chromium.org, dominich+watch_chromium.org, dominich, donnd+watch_chromium.org, dougw+watch_chromium.org, extensions-reviews_chromium.org, gavinp+prer_chromium.org, gcasto+watchlist_chromium.org, jam, Jered, jfweitz+watch_chromium.org, kmadhusu+watch_chromium.org, markusheintz_, melevin+watch_chromium.org, miu+watch_chromium.org, mkwst+watchlist_chromium.org, nasko+codewatch_chromium.org, samarth+watch_chromium.org, site-isolation-reviews_chromium.org, skanuj+watch_chromium.org, tburkard+watch_chromium.org, tfarina
Project:
chromium
Visibility:
Public.

Description

Convert remaining WebContentsObservers loading callbacks to use RFH. Fix several WebContentsObserver implementations that are incorrectly caching only frame routing IDs in order to act only on that frame in later callbacks. Frame routing IDs by themselves are not suitable for identity comparisons, since they are only unique within a given RenderProcessHost. Also clean up WebContentsObservers with a redundant WebContents field. By definition, a WebContentsObserver must know which WebContents it's observing, so there's no need for derived classes to maintain their own WebContents field. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282043

Patch Set 1 #

Patch Set 2 : Preemptive Android fixes #

Patch Set 3 : more android fixes #

Patch Set 4 : Fixed maybe? #

Patch Set 5 : Fix CrOS test #

Total comments: 1

Patch Set 6 : Rebase to ToT #

Patch Set 7 : Fix one more compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -287 lines) Patch
M chrome/browser/android/meta_tag_observer.h View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/android/meta_tag_observer.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/first_run/drive_first_run_controller.cc View 1 2 3 4 5 6 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/dom_distiller/tab_utils_browsertest.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.h View 1 2 3 4 5 1 chunk +7 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 3 4 5 4 chunks +32 lines, -28 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.h View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 2 chunks +3 lines, -13 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 3 chunks +5 lines, -17 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_favicon_loader_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/instant_search_prerenderer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/session_crashed_bubble_view.h View 1 2 3 4 5 6 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/session_crashed_bubble_view.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/dom_distiller/content/distiller_page_web_contents.h View 2 chunks +4 lines, -12 lines 0 comments Download
M components/dom_distiller/content/distiller_page_web_contents.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M components/dom_distiller/content/distiller_page_web_contents_browsertest.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.cc View 6 chunks +10 lines, -27 lines 0 comments Download
M components/dom_distiller/content/web_contents_main_frame_observer.h View 2 chunks +1 line, -6 lines 0 comments Download
M components/dom_distiller/content/web_contents_main_frame_observer.cc View 3 chunks +3 lines, -12 lines 0 comments Download
M content/browser/android/web_contents_observer_android.h View 1 2 chunks +6 lines, -10 lines 0 comments Download
M content/browser/android/web_contents_observer_android.cc View 1 6 chunks +22 lines, -17 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 3 chunks +8 lines, -18 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 chunk +4 lines, -8 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 2 chunks +5 lines, -10 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
dcheng
+jam for overall review. +fsamuel for a closer look at web_guest_view changes +nyquist for a ...
6 years, 5 months ago (2014-07-07 07:42:29 UTC) #1
Fady Samuel
web_view_guest lgtm
6 years, 5 months ago (2014-07-07 14:40:56 UTC) #2
nyquist
dom_distiller lgtm. Thanks! https://codereview.chromium.org/373623002/diff/80001/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (left): https://codereview.chromium.org/373623002/diff/80001/components/dom_distiller/content/dom_distiller_viewer_source.cc#oldcode118 components/dom_distiller/content/dom_distiller_viewer_source.cc:118: // Balanced with constructor although can ...
6 years, 5 months ago (2014-07-07 22:03:35 UTC) #3
Avi (use Gerrit)
FWIW, the content code LGTM. I remember discussions about not wanting to expose RFH from ...
6 years, 5 months ago (2014-07-08 20:22:34 UTC) #4
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 5 months ago (2014-07-08 21:12:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/373623002/80001
6 years, 5 months ago (2014-07-08 21:14:25 UTC) #6
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-08 21:21:22 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 21:25:35 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/26970) win8_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win8_chromium_rel/builds/2173)
6 years, 5 months ago (2014-07-08 21:25:37 UTC) #9
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 5 months ago (2014-07-08 21:38:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/373623002/90001
6 years, 5 months ago (2014-07-08 21:40:33 UTC) #11
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-09 00:33:12 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 00:36:39 UTC) #13
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/78693)
6 years, 5 months ago (2014-07-09 00:36:40 UTC) #14
dcheng
+thakis for OWNERS review of chrome/browser changes.
6 years, 5 months ago (2014-07-09 01:16:27 UTC) #15
Nico
thakis is away
6 years, 5 months ago (2014-07-09 01:24:54 UTC) #16
jochen (gone - plz use gerrit)
lgtm
6 years, 5 months ago (2014-07-09 09:39:29 UTC) #17
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 5 months ago (2014-07-09 09:42:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/373623002/110001
6 years, 5 months ago (2014-07-09 09:43:00 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 13:48:59 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 15:45:33 UTC) #21
Message was sent while issue was closed.
Change committed as 282043

Powered by Google App Engine
This is Rietveld 408576698