Remove WebContents from OmniboxEditController::Update()
commitba203ee59cb2e6fb2a6b1320c1b17fcf0a921d8f
authorblundell <blundell@chromium.org>
Tue, 28 Jul 2015 15:53:28 +0000 (28 08:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Jul 2015 15:54:11 +0000 (28 15:54 +0000)
tree5f4af6310c8c201f7def90f8b1e2b89cc16bb72e
parent9cd186ef93973044b20388ab90d3673b2e2abc36
Remove WebContents from OmniboxEditController::Update()

The one caller of this method shared with iOS calls this method with NULL, so
change the method to have the semantics of being called with NULL and have the
variants that take in a WebContents be defined in the //chrome-level
subclasses.

As always, the motivation is to remove blockers to sharing this code with iOS,
which cannot use //content.

BUG=511944

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

Cr-Commit-Position: refs/heads/master@{#340689}
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/omnibox/omnibox_view_mac_unittest.mm
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/views/location_bar/location_bar_view.cc
chrome/browser/ui/views/location_bar/location_bar_view.h
chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc