| Index: chrome/browser/ui/browser_instant_controller.cc
|
| diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
|
| index 940805bcbde1f9aac724bd31b5a902e2a5eae9c1..b72ee830d77a63fc421535f6954ee02d8ff68f06 100644
|
| --- a/chrome/browser/ui/browser_instant_controller.cc
|
| +++ b/chrome/browser/ui/browser_instant_controller.cc
|
| @@ -150,20 +150,15 @@ void BrowserInstantController::TabDeactivated(content::WebContents* contents) {
|
| prerenderer->Cancel();
|
| }
|
|
|
| -void BrowserInstantController::ModelChanged(
|
| - const SearchModel::State& old_state,
|
| - const SearchModel::State& new_state) {
|
| - if (old_state.mode != new_state.mode) {
|
| - const SearchMode& new_mode = new_state.mode;
|
| -
|
| - // Record some actions corresponding to the mode change. Note that to get
|
| - // the full story, it's necessary to look at other UMA actions as well,
|
| - // such as tab switches.
|
| - if (new_mode.is_ntp())
|
| - base::RecordAction(base::UserMetricsAction("InstantExtended.ShowNTP"));
|
| -
|
| - instant_.SearchModeChanged(old_state.mode, new_mode);
|
| - }
|
| +void BrowserInstantController::ModelChanged(const SearchMode& old_mode,
|
| + const SearchMode& new_mode) {
|
| + // Record some actions corresponding to the mode change. Note that to get
|
| + // the full story, it's necessary to look at other UMA actions as well,
|
| + // such as tab switches.
|
| + if (new_mode.is_ntp())
|
| + base::RecordAction(base::UserMetricsAction("InstantExtended.ShowNTP"));
|
| +
|
| + instant_.SearchModeChanged(old_mode, new_mode);
|
| }
|
|
|
| void BrowserInstantController::DefaultSearchProviderChanged(
|
|
|