summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_instant_controller.cc
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 06:34:03 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 06:34:03 +0000
commit165fe42611fb0b699c6a5365efb9f028397d88b6 (patch)
tree65b7bf9bf4298c050cdd01f4f076dc934c20e3af /chrome/browser/ui/browser_instant_controller.cc
parentaae5d6e59c825a4be4879d94872c084608219fa0 (diff)
downloadchromium_src-165fe42611fb0b699c6a5365efb9f028397d88b6.zip
chromium_src-165fe42611fb0b699c6a5365efb9f028397d88b6.tar.gz
chromium_src-165fe42611fb0b699c6a5365efb9f028397d88b6.tar.bz2
[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
Diffstat (limited to 'chrome/browser/ui/browser_instant_controller.cc')
-rw-r--r--chrome/browser/ui/browser_instant_controller.cc22
1 files changed, 9 insertions, 13 deletions
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 0d34e6b..1117ae1 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 @@ BrowserInstantController::BrowserInstantController(Browser* browser)
// 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 @@ void BrowserInstantController::ResetInstant(const std::string& pref_name) {
// 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 @@ void BrowserInstantController::ResetInstant(const std::string& pref_name) {
}
////////////////////////////////////////////////////////////////////////////////
-// 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 @@ void BrowserInstantController::OnThemeChanged(ThemeService* theme_service) {
if (browser_->search_model()->mode().is_ntp())
instant_.ThemeChanged(theme_info_);
}
-
-} // namespace chrome