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

Issue 293503003: Eliminate dependence of GoogleURLTracker et al. on InfoBarService (Closed)

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

Description

Eliminate dependence of GoogleURLTracker et al. on InfoBarService This CL changes the dependence of GoogleURLTracker(InfoBarDelegate, MapEntry) on InfoBarService to instead be a dependence on infobars::InfoBarManager. The only reason that InfoBarManager wasn't sufficient was that GoogleURLTrackerInfoBarDelegate obtained the WebContents from the InfoBarService. This flow is replaced by introducing an OpenURL() API on GoogleURLTrackerNavigationHelper (GoogleURLTrackerNavigationHelperImpl implements this API by calling through to its WebContents instance, which is the same instance associated with the InfoBarService). BUG=373231, 373233 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273821

Patch Set 1 #

Patch Set 2 : Style nits #

Total comments: 3

Patch Set 3 : Fix ownership problem #

Total comments: 10

Patch Set 4 : Response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -115 lines) Patch
M chrome/browser/google/google_url_tracker.h View 1 2 3 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 7 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/google/google_url_tracker_infobar_delegate.h View 1 2 3 3 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/google/google_url_tracker_infobar_delegate.cc View 1 2 4 chunks +16 lines, -21 lines 0 comments Download
M chrome/browser/google/google_url_tracker_map_entry.h View 1 2 3 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/google/google_url_tracker_map_entry.cc View 1 2 3 3 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/google/google_url_tracker_navigation_helper.h View 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/google/google_url_tracker_navigation_helper_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker_navigation_helper_impl.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 14 chunks +56 lines, -38 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
blundell
6 years, 7 months ago (2014-05-18 20:49:29 UTC) #1
Peter Kasting
https://codereview.chromium.org/293503003/diff/20001/chrome/browser/google/google_url_tracker_infobar_delegate.cc File chrome/browser/google/google_url_tracker_infobar_delegate.cc (right): https://codereview.chromium.org/293503003/diff/20001/chrome/browser/google/google_url_tracker_infobar_delegate.cc#newcode65 chrome/browser/google/google_url_tracker_infobar_delegate.cc:65: navigation_helper->OpenURL(new_search_url, CURRENT_TAB, false); I don't think this is safe. ...
6 years, 7 months ago (2014-05-19 13:59:21 UTC) #2
blundell
https://codereview.chromium.org/293503003/diff/20001/chrome/browser/google/google_url_tracker_infobar_delegate.cc File chrome/browser/google/google_url_tracker_infobar_delegate.cc (right): https://codereview.chromium.org/293503003/diff/20001/chrome/browser/google/google_url_tracker_infobar_delegate.cc#newcode65 chrome/browser/google/google_url_tracker_infobar_delegate.cc:65: navigation_helper->OpenURL(new_search_url, CURRENT_TAB, false); Oof, yes you're right. I'm inclined ...
6 years, 7 months ago (2014-05-19 14:06:54 UTC) #3
Peter Kasting
https://codereview.chromium.org/293503003/diff/20001/chrome/browser/google/google_url_tracker_infobar_delegate.cc File chrome/browser/google/google_url_tracker_infobar_delegate.cc (right): https://codereview.chromium.org/293503003/diff/20001/chrome/browser/google/google_url_tracker_infobar_delegate.cc#newcode65 chrome/browser/google/google_url_tracker_infobar_delegate.cc:65: navigation_helper->OpenURL(new_search_url, CURRENT_TAB, false); On 2014/05/19 14:06:54, blundell wrote: > ...
6 years, 7 months ago (2014-05-19 14:16:25 UTC) #4
blundell
Hi Peter, This PS has the MapEntry pass the NavigationHelper to the InfoBarDelegate when the ...
6 years, 7 months ago (2014-05-26 15:59:20 UTC) #5
Peter Kasting
I will try to review this tomorrow.
6 years, 7 months ago (2014-05-28 02:17:40 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/293503003/diff/80001/chrome/browser/google/google_url_tracker_infobar_delegate.h File chrome/browser/google/google_url_tracker_infobar_delegate.h (right): https://codereview.chromium.org/293503003/diff/80001/chrome/browser/google/google_url_tracker_infobar_delegate.h#newcode71 chrome/browser/google/google_url_tracker_infobar_delegate.h:71: // In certain corner cases, this object gives ...
6 years, 6 months ago (2014-05-28 22:19:04 UTC) #7
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-05-30 09:23:52 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/293503003/100001
6 years, 6 months ago (2014-05-30 09:24:26 UTC) #9
blundell
The CQ bit was unchecked by blundell@chromium.org
6 years, 6 months ago (2014-05-30 09:26:18 UTC) #10
blundell
https://codereview.chromium.org/293503003/diff/80001/chrome/browser/google/google_url_tracker_infobar_delegate.h File chrome/browser/google/google_url_tracker_infobar_delegate.h (right): https://codereview.chromium.org/293503003/diff/80001/chrome/browser/google/google_url_tracker_infobar_delegate.h#newcode71 chrome/browser/google/google_url_tracker_infobar_delegate.h:71: // In certain corner cases, this object gives up ...
6 years, 6 months ago (2014-05-30 09:39:17 UTC) #11
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-05-30 09:39:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/293503003/120001
6 years, 6 months ago (2014-05-30 09:41:11 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 13:25:10 UTC) #14
Message was sent while issue was closed.
Change committed as 273821

Powered by Google App Engine
This is Rietveld 408576698