Instead of passing ToolbarModel*s around, have classes ask the Browser.
commita40be8bcb46f89a8e11616cd790495c2fdccc6e0
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 22 Aug 2013 20:12:14 +0000 (22 20:12 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 22 Aug 2013 20:12:14 +0000 (22 20:12 +0000)
tree070055c4df9a15d8ca8c0d4a4a735798ec4ef209
parenteacf28e772602086ea1ff4580a8d97b92c66e3b4
Instead of passing ToolbarModel*s around, have classes ask the Browser.

This makes it simpler to override the toolbar model for testing.  This will be
useful in a future change where the OmniboxEditModel starts reading from the
toolbar model "under the hood" in UpdatePermanentText().

BUG=none
TEST=none
R=sky@chromium.org

Review URL: https://codereview.chromium.org/23365004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219087 0039d316-1c4b-4281-b951-d872f2087c98
44 files changed:
chrome/browser/chromeos/login/simple_web_view_dialog.cc
chrome/browser/chromeos/login/simple_web_view_dialog.h
chrome/browser/ui/browser.cc
chrome/browser/ui/browser.h
chrome/browser/ui/cocoa/browser_window_controller.mm
chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm
chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac_unittest.mm
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
chrome/browser/ui/cocoa/toolbar/toolbar_controller.h
chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
chrome/browser/ui/cocoa/toolbar/toolbar_controller_unittest.mm
chrome/browser/ui/gtk/browser_toolbar_gtk.cc
chrome/browser/ui/gtk/browser_toolbar_gtk.h
chrome/browser/ui/gtk/location_bar_view_gtk.cc
chrome/browser/ui/gtk/location_bar_view_gtk.h
chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h
chrome/browser/ui/gtk/omnibox/omnibox_view_gtk_unittest.cc
chrome/browser/ui/omnibox/omnibox_edit_controller.h
chrome/browser/ui/omnibox/omnibox_edit_model.cc
chrome/browser/ui/omnibox/omnibox_edit_unittest.cc
chrome/browser/ui/omnibox/omnibox_view.cc
chrome/browser/ui/omnibox/omnibox_view.h
chrome/browser/ui/search/search_delegate.cc
chrome/browser/ui/search/search_delegate.h
chrome/browser/ui/views/location_bar/generated_credit_card_view.cc
chrome/browser/ui/views/location_bar/generated_credit_card_view.h
chrome/browser/ui/views/location_bar/location_bar_view.cc
chrome/browser/ui/views/location_bar/location_bar_view.h
chrome/browser/ui/views/location_bar/zoom_view.cc
chrome/browser/ui/views/location_bar/zoom_view.h
chrome/browser/ui/views/omnibox/omnibox_view_views.cc
chrome/browser/ui/views/omnibox/omnibox_view_views.h
chrome/browser/ui/views/omnibox/omnibox_view_win.cc
chrome/browser/ui/views/omnibox/omnibox_view_win.h
chrome/browser/ui/views/omnibox/omnibox_views.cc
chrome/browser/ui/views/omnibox/omnibox_views.h
chrome/browser/ui/views/toolbar_view.cc
chrome/browser/ui/views/toolbar_view.h