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

Issue 11114009: Split the existing GoogleURLTrackerInfoBarDelegate into two classes (Closed)

Created:
8 years, 2 months ago by Peter Kasting
Modified:
8 years, 2 months ago
Reviewers:
Ilya Sherman, sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Split the existing GoogleURLTrackerInfoBarDelegate into two classes by adding a MapEntry class. The MapEntry represents all the metadata about a pending search. This means that the infobar delegate itself can now be created only when it's going to actually be added to a tab, just like other infobars. This is necessary for some cleanup I'm doing to infobar calling conventions and ownership. This also makes each individual class simpler than the old unified class. There are some other miscellaneous changes in here, like switching the test code magic numbers from int to intptr_t (safer for portability). BUG=none TEST=none TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=162298

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 27

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+571 lines, -516 lines) Patch
M chrome/browser/google/google_url_tracker.h View 1 2 3 5 chunks +24 lines, -34 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 1 2 3 15 chunks +101 lines, -118 lines 0 comments Download
M chrome/browser/google/google_url_tracker_infobar_delegate.h View 1 2 3 4 5 2 chunks +10 lines, -16 lines 0 comments Download
M chrome/browser/google/google_url_tracker_infobar_delegate.cc View 1 2 3 3 chunks +18 lines, -56 lines 0 comments Download
A chrome/browser/google/google_url_tracker_map_entry.h View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/google/google_url_tracker_map_entry.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 3 4 41 chunks +303 lines, -292 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Kasting
8 years, 2 months ago (2012-10-12 04:04:48 UTC) #1
tfarina
http://codereview.chromium.org/11114009/diff/20001/chrome/browser/google/google_url_tracker_unittest.cc File chrome/browser/google/google_url_tracker_unittest.cc (right): http://codereview.chromium.org/11114009/diff/20001/chrome/browser/google/google_url_tracker_unittest.cc#newcode42 chrome/browser/google/google_url_tracker_unittest.cc:42: GURL search_url() const { return search_url_; } nit: const ...
8 years, 2 months ago (2012-10-13 21:30:02 UTC) #2
Peter Kasting
isherman: ping
8 years, 2 months ago (2012-10-16 01:19:50 UTC) #3
Ilya Sherman
I like the direction of this cleanup :) https://chromiumcodereview.appspot.com/11114009/diff/20001/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): https://chromiumcodereview.appspot.com/11114009/diff/20001/chrome/browser/google/google_url_tracker.cc#newcode225 chrome/browser/google/google_url_tracker.cc:225: } ...
8 years, 2 months ago (2012-10-16 20:16:24 UTC) #4
Peter Kasting
PTAL. http://codereview.chromium.org/11114009/diff/20001/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): http://codereview.chromium.org/11114009/diff/20001/chrome/browser/google/google_url_tracker.cc#newcode225 chrome/browser/google/google_url_tracker.cc:225: } On 2012/10/16 20:16:24, Ilya Sherman wrote: > ...
8 years, 2 months ago (2012-10-16 23:29:35 UTC) #5
Ilya Sherman
LGTM, thanks https://codereview.chromium.org/11114009/diff/20001/chrome/browser/google/google_url_tracker_unittest.cc File chrome/browser/google/google_url_tracker_unittest.cc (right): https://codereview.chromium.org/11114009/diff/20001/chrome/browser/google/google_url_tracker_unittest.cc#newcode55 chrome/browser/google/google_url_tracker_unittest.cc:55: }; On 2012/10/16 23:29:35, Peter Kasting wrote: ...
8 years, 2 months ago (2012-10-17 00:32:41 UTC) #6
Peter Kasting
https://codereview.chromium.org/11114009/diff/24001/chrome/browser/google/google_url_tracker.cc File chrome/browser/google/google_url_tracker.cc (right): https://codereview.chromium.org/11114009/diff/24001/chrome/browser/google/google_url_tracker.cc#newcode29 chrome/browser/google/google_url_tracker.cc:29: On 2012/10/17 00:32:41, Ilya Sherman wrote: > nit: Spurious ...
8 years, 2 months ago (2012-10-17 00:34:28 UTC) #7
Peter Kasting
8 years, 2 months ago (2012-10-17 01:42:13 UTC) #8
TBR=sky for chrome/chrome_browser.gypi OWNERS

Powered by Google App Engine
This is Rietveld 408576698