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 7bac258f309a0ad98324036daf3a8b333ceb763f..9e3be3a75dd769b034378a9a87577ef55aee7c2e 100644 |
--- a/chrome/browser/ui/browser_instant_controller.cc |
+++ b/chrome/browser/ui/browser_instant_controller.cc |
@@ -27,7 +27,8 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_view.h" |
-using base::UserMetricsAction; |
+ |
+// Helpers -------------------------------------------------------------------- |
namespace { |
@@ -40,8 +41,8 @@ InstantSearchPrerenderer* GetInstantSearchPrerenderer(Profile* profile) { |
} // namespace |
-//////////////////////////////////////////////////////////////////////////////// |
-// BrowserInstantController, public: |
+ |
+// BrowserInstantController --------------------------------------------------- |
BrowserInstantController::BrowserInstantController(Browser* browser) |
: browser_(browser), |
@@ -120,9 +121,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) { |
@@ -133,9 +131,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); |
} |
@@ -144,18 +142,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) |