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

Issue 13932034: Omnibox refactor, introduced OmniboxController. (Closed)

Created:
7 years, 8 months ago by beaudoin
Modified:
7 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Omnibox refactor, introduced OmniboxController. For the moment, OmniboxController is just a light-weight class between the AutocompleteController and the OmniboxEditModel. The final goal is to remove any reference to the AutocompleteController (and the SearchProvider) from OmniboxEditModel. This is the first step. BUG=234733 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196582

Patch Set 1 #

Patch Set 2 : With new files this time... #

Patch Set 3 : Cleaned some comments. #

Total comments: 2

Patch Set 4 : Answered mathieu, rebased. #

Total comments: 8

Patch Set 5 : Answered Sreeram, added tests. #

Patch Set 6 : Corrected code style. #

Total comments: 8

Patch Set 7 : Modified tests, answered Sreeram. #

Total comments: 35

Patch Set 8 : Answered Peter's comments. #

Total comments: 6

Patch Set 9 : Fixed nits. #

Patch Set 10 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -40 lines) Patch
A chrome/browser/ui/omnibox/omnibox_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/omnibox/omnibox_controller.cc View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/omnibox/omnibox_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +97 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 7 6 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 9 23 chunks +29 lines, -34 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
beaudoin
Sreeram, mathieu: This is a very basic step in the OmniboxEditModel refactor, but I just ...
7 years, 8 months ago (2013-04-16 18:48:29 UTC) #1
beaudoin
Added missing files...
7 years, 8 months ago (2013-04-16 18:59:21 UTC) #2
Mathieu
I think this is a patch that goes in the right direction, looks solid to ...
7 years, 8 months ago (2013-04-23 15:26:07 UTC) #3
beaudoin
7 years, 8 months ago (2013-04-23 17:56:33 UTC) #4
beaudoin
With the done this time. :) https://codereview.chromium.org/13932034/diff/6001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/13932034/diff/6001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode240 chrome/browser/ui/omnibox/omnibox_edit_model.cc:240: On 2013/04/23 15:26:07, ...
7 years, 8 months ago (2013-04-23 18:04:01 UTC) #5
sreeram
Please create a bug and add it to the BUG= line. This will make it ...
7 years, 8 months ago (2013-04-23 18:26:51 UTC) #6
beaudoin
Answered your comments, added some tests. https://codereview.chromium.org/13932034/diff/10001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://codereview.chromium.org/13932034/diff/10001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode14 chrome/browser/ui/omnibox/omnibox_controller.cc:14: Profile* profile) On ...
7 years, 8 months ago (2013-04-23 23:42:54 UTC) #7
sreeram
https://codereview.chromium.org/13932034/diff/23001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc File chrome/browser/ui/omnibox/omnibox_controller_unittest.cc (right): https://codereview.chromium.org/13932034/diff/23001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc#newcode1 chrome/browser/ui/omnibox/omnibox_controller_unittest.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 8 months ago (2013-04-24 20:25:03 UTC) #8
beaudoin
Sreeram, PTAL. https://chromiumcodereview.appspot.com/13932034/diff/23001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc File chrome/browser/ui/omnibox/omnibox_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/13932034/diff/23001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc#newcode1 chrome/browser/ui/omnibox/omnibox_controller_unittest.cc:1: // Copyright (c) 2013 The Chromium Authors. ...
7 years, 8 months ago (2013-04-25 14:57:53 UTC) #9
sreeram
lgtm
7 years, 8 months ago (2013-04-25 15:46:07 UTC) #10
beaudoin
Peter: For owners.
7 years, 8 months ago (2013-04-25 17:14:02 UTC) #11
Peter Kasting
https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode11 chrome/browser/ui/omnibox/omnibox_controller.cc:11: Tiny nit: I've slowly been moving towards two newlines ...
7 years, 8 months ago (2013-04-25 18:24:55 UTC) #12
sreeram
https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc File chrome/browser/ui/omnibox/omnibox_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc#newcode68 chrome/browser/ui/omnibox/omnibox_controller_unittest.cc:68: AutocompleteProvider::TYPE_SHORTCUTS; On 2013/04/25 18:24:55, Peter Kasting wrote: > I'm ...
7 years, 8 months ago (2013-04-25 18:47:51 UTC) #13
Peter Kasting
https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc File chrome/browser/ui/omnibox/omnibox_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc#newcode68 chrome/browser/ui/omnibox/omnibox_controller_unittest.cc:68: AutocompleteProvider::TYPE_SHORTCUTS; On 2013/04/25 18:47:51, sreeram wrote: > On 2013/04/25 ...
7 years, 8 months ago (2013-04-25 19:05:07 UTC) #14
beaudoin
https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.h File chrome/browser/ui/omnibox/omnibox_controller.h (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.h#newcode8 chrome/browser/ui/omnibox/omnibox_controller.h:8: #include "base/basictypes.h" On 2013/04/25 18:24:55, Peter Kasting wrote: > ...
7 years, 8 months ago (2013-04-25 19:14:57 UTC) #15
Peter Kasting
https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc File chrome/browser/ui/omnibox/omnibox_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller_unittest.cc#newcode68 chrome/browser/ui/omnibox/omnibox_controller_unittest.cc:68: AutocompleteProvider::TYPE_SHORTCUTS; On 2013/04/25 19:14:57, beaudoin wrote: > What if ...
7 years, 8 months ago (2013-04-25 19:45:27 UTC) #16
beaudoin
Peter: PTAL. https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.cc File chrome/browser/ui/omnibox/omnibox_controller.cc (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.cc#newcode11 chrome/browser/ui/omnibox/omnibox_controller.cc:11: On 2013/04/25 18:24:55, Peter Kasting wrote: > ...
7 years, 8 months ago (2013-04-25 20:34:51 UTC) #17
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.h File chrome/browser/ui/omnibox/omnibox_controller.h (right): https://chromiumcodereview.appspot.com/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.h#newcode27 chrome/browser/ui/omnibox/omnibox_controller.h:27: AutocompleteController* autocomplete_controller() const { On 2013/04/25 20:34:51, beaudoin ...
7 years, 8 months ago (2013-04-25 20:52:09 UTC) #18
beaudoin
https://codereview.chromium.org/13932034/diff/44001/chrome/browser/ui/omnibox/omnibox_controller.h File chrome/browser/ui/omnibox/omnibox_controller.h (right): https://codereview.chromium.org/13932034/diff/44001/chrome/browser/ui/omnibox/omnibox_controller.h#newcode18 chrome/browser/ui/omnibox/omnibox_controller.h:18: // responsible of updating the omnibox content. On 2013/04/25 ...
7 years, 8 months ago (2013-04-25 21:09:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/13932034/51001
7 years, 8 months ago (2013-04-25 21:10:08 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/chrome_tests_unit.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-25 21:10:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/13932034/56001
7 years, 8 months ago (2013-04-25 23:26:31 UTC) #22
beaudoin
https://codereview.chromium.org/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.h File chrome/browser/ui/omnibox/omnibox_controller.h (right): https://codereview.chromium.org/13932034/diff/29001/chrome/browser/ui/omnibox/omnibox_controller.h#newcode27 chrome/browser/ui/omnibox/omnibox_controller.h:27: AutocompleteController* autocomplete_controller() const { On 2013/04/25 20:52:09, Peter Kasting ...
7 years, 8 months ago (2013-04-25 23:51:33 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=107138
7 years, 8 months ago (2013-04-26 01:24:58 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/13932034/56001
7 years, 8 months ago (2013-04-26 02:01:50 UTC) #25
commit-bot: I haz the power
7 years, 8 months ago (2013-04-26 02:36:26 UTC) #26
Message was sent while issue was closed.
Change committed as 196582

Powered by Google App Engine
This is Rietveld 408576698