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

Issue 2731123002: Fix some issues with OmniboxViewViews' use of OmniboxClient. (Closed)

Created:
3 years, 9 months ago by Peter Kasting
Modified:
3 years, 9 months ago
Reviewers:
Mark P
CC:
chromium-reviews, tfarina, jdonnelly+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix some issues with OmniboxViewViews' use of OmniboxClient. Instead of creating this in the constructor, have callers pass it in. Also, use this client to get the scheme classifier instead of constructing a new one each time it's needed. Not only is this mode efficient, it means we can now avoid passing in the Profile at all. BUG=none TEST=none Review-Url: https://codereview.chromium.org/2731123002 Cr-Commit-Position: refs/heads/master@{#455437} Committed: https://chromium.googlesource.com/chromium/src/+/b8632833b06502d99b8607b48a5ca048b8e72842

Patch Set 1 #

Patch Set 2 : Remove header #

Patch Set 3 : Fix missing #include #

Patch Set 4 : Resync #

Total comments: 3

Patch Set 5 : Resync #

Patch Set 6 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -21 lines) Patch
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc View 1 2 3 4 6 chunks +11 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (20 generated)
Peter Kasting
3 years, 9 months ago (2017-03-04 05:22:27 UTC) #8
Peter Kasting
This isn't strictly necessary for the followon patch anymore, now that I found a way ...
3 years, 9 months ago (2017-03-06 20:18:50 UTC) #12
Mark P
lgtm Three cheers for managing to stop passing around Profiles! --mark https://codereview.chromium.org/2731123002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): ...
3 years, 9 months ago (2017-03-08 05:43:38 UTC) #17
Peter Kasting
https://codereview.chromium.org/2731123002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views.h File chrome/browser/ui/views/omnibox/omnibox_view_views.h (right): https://codereview.chromium.org/2731123002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views.h#newcode58 chrome/browser/ui/views/omnibox/omnibox_view_views.h:58: std::unique_ptr<OmniboxClient> client, On 2017/03/08 05:43:38, Mark P wrote: > ...
3 years, 9 months ago (2017-03-08 11:44:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2731123002/100001
3 years, 9 months ago (2017-03-08 11:45:14 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 12:51:02 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/b8632833b06502d99b8607b48a5c...

Powered by Google App Engine
This is Rietveld 408576698