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

Issue 283413002: Turn GoogleURLTrackerNavigationHelper(Impl) into a per-tab object. (Closed)

Created:
6 years, 7 months ago by blundell
Modified:
6 years, 6 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Visibility:
Public.

Description

Turn GoogleURLTrackerNavigationHelper(Impl) into a per-tab object. The goal of this CL is to eliminate the dependence of GoogleURLTracker(MapEntry) on NavigationController. To accomplish this goal, GoogleURLTrackerNavigationHelper is turned into a conceptually per-tab interface. GoogleURLTracker::OnNavigationPending() now takes in the GoogleURLTrackerNavigationHelper with which the navigation is associated rather than the associated NavigationController; GoogleURLTracker performs per-tab actions by calling the navigation helper associated with the tab. A followup CL will turn GoogleURLTrackerNavigationHelper(Impl) into the GoogleURLTrackerDriver interface and ContentURLTrackerDriver implementation. BUG=373230 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272094 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273490

Patch Set 1 #

Patch Set 2 : Add missing file #

Patch Set 3 : nit #

Total comments: 42

Patch Set 4 : Response to review #

Patch Set 5 : Response to review #

Total comments: 4

Patch Set 6 : Response to review #

Patch Set 7 : Rebase #

Patch Set 8 : Unittest fix #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -232 lines) Patch
M chrome/browser/google/chrome_google_url_tracker_client.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/google/google_url_tracker.h View 1 2 3 4 5 6 6 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 4 5 6 11 chunks +39 lines, -47 lines 0 comments Download
M chrome/browser/google/google_url_tracker_factory.cc View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/google/google_url_tracker_map_entry.h View 1 2 3 4 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/google/google_url_tracker_map_entry.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google/google_url_tracker_navigation_helper.h View 1 2 3 1 chunk +26 lines, -30 lines 0 comments Download
A chrome/browser/google/google_url_tracker_navigation_helper.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker_navigation_helper_impl.h View 1 2 3 2 chunks +12 lines, -15 lines 0 comments Download
M chrome/browser/google/google_url_tracker_navigation_helper_impl.cc View 1 2 3 4 5 3 chunks +29 lines, -44 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 3 4 5 6 7 10 chunks +46 lines, -62 lines 3 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
blundell
Hi Peter, This is the trickiest part of the componentization. I manually tested that the ...
6 years, 7 months ago (2014-05-15 15:24:14 UTC) #1
Peter Kasting
Do the nav helper impls really have to be owned by the WebContents? Why can't ...
6 years, 7 months ago (2014-05-15 21:29:51 UTC) #2
blundell
On 2014/05/15 21:29:51, Peter Kasting wrote: > Do the nav helper impls really have to ...
6 years, 7 months ago (2014-05-15 21:37:23 UTC) #3
Peter Kasting
On 2014/05/15 21:37:23, blundell wrote: > On 2014/05/15 21:29:51, Peter Kasting wrote: > > Do ...
6 years, 7 months ago (2014-05-15 21:39:15 UTC) #4
blundell
Thanks! Changed the NavHelper ownership model to work as we discussed. https://codereview.chromium.org/283413002/diff/2/chrome/browser/google/chrome_google_url_tracker_client.cc File chrome/browser/google/chrome_google_url_tracker_client.cc (right): ...
6 years, 7 months ago (2014-05-16 11:54:17 UTC) #5
Peter Kasting
LGTM https://codereview.chromium.org/283413002/diff/70001/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): https://codereview.chromium.org/283413002/diff/70001/chrome/browser/google/google_url_tracker.cc#newcode312 chrome/browser/google/google_url_tracker.cc:312: if (!map_entry->navigation_helper()->IsListeningForNavigationCommit()) { Nit: No {} https://codereview.chromium.org/283413002/diff/70001/chrome/browser/google/google_url_tracker_navigation_helper_impl.cc File ...
6 years, 7 months ago (2014-05-16 23:38:13 UTC) #6
blundell
https://codereview.chromium.org/283413002/diff/70001/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): https://codereview.chromium.org/283413002/diff/70001/chrome/browser/google/google_url_tracker.cc#newcode312 chrome/browser/google/google_url_tracker.cc:312: if (!map_entry->navigation_helper()->IsListeningForNavigationCommit()) { On 2014/05/16 23:38:13, Peter Kasting wrote: ...
6 years, 7 months ago (2014-05-17 19:23:54 UTC) #7
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 18:39:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/283413002/110001
6 years, 7 months ago (2014-05-20 18:40:26 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 19:34:49 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-20 19:39:23 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/5909) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68720) linux_chromium_rel ...
6 years, 7 months ago (2014-05-20 19:39:24 UTC) #12
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 7 months ago (2014-05-20 21:18:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/283413002/130001
6 years, 7 months ago (2014-05-20 21:19:06 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 00:40:28 UTC) #15
commit-bot: I haz the power
Change committed as 272094
6 years, 7 months ago (2014-05-22 04:25:34 UTC) #16
blundell
A revert of this CL has been created in https://codereview.chromium.org/294193005/ by blundell@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-23 12:07:44 UTC) #17
blundell
Hey Peter, Could you take a look over my change to fix the flaky unittests ...
6 years, 7 months ago (2014-05-26 12:19:34 UTC) #18
Peter Kasting
I will try to review this tomorrow.
6 years, 7 months ago (2014-05-28 02:17:20 UTC) #19
Peter Kasting
LGTM with question https://codereview.chromium.org/283413002/diff/150001/chrome/browser/google/google_url_tracker_unittest.cc File chrome/browser/google/google_url_tracker_unittest.cc (right): https://codereview.chromium.org/283413002/diff/150001/chrome/browser/google/google_url_tracker_unittest.cc#newcode317 chrome/browser/google/google_url_tracker_unittest.cc:317: google_url_tracker_->Shutdown(); On 2014/05/26 12:19:34, blundell wrote: ...
6 years, 6 months ago (2014-05-28 19:18:50 UTC) #20
blundell
https://codereview.chromium.org/283413002/diff/150001/chrome/browser/google/google_url_tracker_unittest.cc File chrome/browser/google/google_url_tracker_unittest.cc (right): https://codereview.chromium.org/283413002/diff/150001/chrome/browser/google/google_url_tracker_unittest.cc#newcode317 chrome/browser/google/google_url_tracker_unittest.cc:317: google_url_tracker_->Shutdown(); I'm going to be componentizing this unittest whereas ...
6 years, 6 months ago (2014-05-28 19:19:51 UTC) #21
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-05-29 11:55:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/283413002/150001
6 years, 6 months ago (2014-05-29 11:56:26 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-05-29 16:32:13 UTC) #24
Message was sent while issue was closed.
Change committed as 273490

Powered by Google App Engine
This is Rietveld 408576698