[Clean up] Drop chrome::search:: namespace.

Drop the chrome::search:: namespace, but retain chrome:: for only enums and global functions.  Regular classes would be namespace free.

BUG=218625
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12594017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190829 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 0d34e6b..1117ae14 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -31,15 +31,13 @@
 
 using content::UserMetricsAction;
 
-namespace chrome {
-
 ////////////////////////////////////////////////////////////////////////////////
 // BrowserInstantController, public:
 
 BrowserInstantController::BrowserInstantController(Browser* browser)
     : browser_(browser),
       instant_(ALLOW_THIS_IN_INITIALIZER_LIST(this),
-               chrome::search::IsInstantExtendedAPIEnabled()),
+               chrome::IsInstantExtendedAPIEnabled()),
       instant_unload_handler_(browser),
       initialized_theme_info_(false) {
 
@@ -47,7 +45,7 @@
   // preference's default value is set to the existing value of kInstantEnabled.
   // Because this requires reading the value of the kInstantEnabled value, we
   // reset the default for kInstantExtendedEnabled here.
-  chrome::search::SetInstantExtendedPrefDefault(profile());
+  chrome::SetInstantExtendedPrefDefault(profile());
 
   profile_pref_registrar_.Init(profile()->GetPrefs());
   profile_pref_registrar_.Add(
@@ -227,9 +225,9 @@
   // Update the default value of the kInstantExtendedEnabled pref to match the
   // value of the kInstantEnabled pref, if necessary.
   if (pref_name == prefs::kInstantEnabled)
-    chrome::search::SetInstantExtendedPrefDefault(profile());
+    chrome::SetInstantExtendedPrefDefault(profile());
 
-  bool instant_pref_enabled = chrome::search::IsInstantPrefEnabled(profile());
+  bool instant_pref_enabled = chrome::IsInstantPrefEnabled(profile());
   bool use_local_overlay_only = profile()->IsOffTheRecord() ||
       (!instant_pref_enabled &&
        !profile()->GetPrefs()->GetBoolean(prefs::kSearchSuggestEnabled));
@@ -237,17 +235,17 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-// BrowserInstantController, search::SearchModelObserver implementation:
+// BrowserInstantController, SearchModelObserver implementation:
 
 void BrowserInstantController::ModelChanged(
-    const search::SearchModel::State& old_state,
-    const search::SearchModel::State& new_state) {
+    const SearchModel::State& old_state,
+    const SearchModel::State& new_state) {
   if (old_state.mode == new_state.mode)
     return;
 
-  const search::Mode& new_mode = new_state.mode;
+  const SearchMode& new_mode = new_state.mode;
 
-  if (search::IsInstantExtendedAPIEnabled()) {
+  if (chrome::IsInstantExtendedAPIEnabled()) {
     // 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.
@@ -353,5 +351,3 @@
   if (browser_->search_model()->mode().is_ntp())
     instant_.ThemeChanged(theme_info_);
 }
-
-}  // namespace chrome