| 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 d1d8e92bacc7cbaceafe2dd5b7ac894afa35f811..3e95e325a1a2cafeddc3491ca24746dc1a52075e 100644
|
| --- a/chrome/browser/ui/browser_instant_controller.cc
|
| +++ b/chrome/browser/ui/browser_instant_controller.cc
|
| @@ -26,7 +26,8 @@
|
| #include "content/public/browser/user_metrics.h"
|
| #include "content/public/browser/web_contents.h"
|
|
|
| -using base::UserMetricsAction;
|
| +
|
| +// Helpers --------------------------------------------------------------------
|
|
|
| namespace {
|
|
|
| @@ -39,8 +40,8 @@ InstantSearchPrerenderer* GetInstantSearchPrerenderer(Profile* profile) {
|
|
|
| } // namespace
|
|
|
| -////////////////////////////////////////////////////////////////////////////////
|
| -// BrowserInstantController, public:
|
| +
|
| +// BrowserInstantController ---------------------------------------------------
|
|
|
| BrowserInstantController::BrowserInstantController(Browser* browser)
|
| : browser_(browser),
|
| @@ -119,9 +120,6 @@ void BrowserInstantController::TabDeactivated(content::WebContents* contents) {
|
| prerenderer->Cancel();
|
| }
|
|
|
| -////////////////////////////////////////////////////////////////////////////////
|
| -// BrowserInstantController, SearchModelObserver implementation:
|
| -
|
| void BrowserInstantController::ModelChanged(
|
| const SearchModel::State& old_state,
|
| const SearchModel::State& new_state) {
|
| @@ -132,9 +130,9 @@ void BrowserInstantController::ModelChanged(
|
| // the full story, it's necessary to look at other UMA actions as well,
|
| // such as tab switches.
|
| if (new_mode.is_search_results())
|
| - content::RecordAction(UserMetricsAction("InstantExtended.ShowSRP"));
|
| + content::RecordAction(base::UserMetricsAction("InstantExtended.ShowSRP"));
|
| else if (new_mode.is_ntp())
|
| - content::RecordAction(UserMetricsAction("InstantExtended.ShowNTP"));
|
| + content::RecordAction(base::UserMetricsAction("InstantExtended.ShowNTP"));
|
|
|
| instant_.SearchModeChanged(old_state.mode, new_mode);
|
| }
|
| @@ -143,18 +141,7 @@ void BrowserInstantController::ModelChanged(
|
| instant_.InstantSupportChanged(new_state.instant_support);
|
| }
|
|
|
| -////////////////////////////////////////////////////////////////////////////////
|
| -// BrowserInstantController, InstantServiceObserver implementation:
|
| -
|
| void BrowserInstantController::DefaultSearchProviderChanged() {
|
| - ReloadTabsInInstantProcess();
|
| -}
|
| -
|
| -void BrowserInstantController::GoogleURLUpdated() {
|
| - ReloadTabsInInstantProcess();
|
| -}
|
| -
|
| -void BrowserInstantController::ReloadTabsInInstantProcess() {
|
| InstantService* instant_service =
|
| InstantServiceFactory::GetForProfile(profile());
|
| if (!instant_service)
|
|
|