Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2246)

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.cc

Issue 10265022: Moving extensions inside chrome/browser/extensions/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/omnibox/omnibox_api.cc
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
similarity index 96%
rename from chrome/browser/extensions/extension_omnibox_api.cc
rename to chrome/browser/extensions/api/omnibox/omnibox_api.cc
index a83e57707820e967336de7d5a8324590b2567b19..c6c8bfd8b09d38c7ebab1d4881a5170b467daedc 100644
--- a/chrome/browser/extensions/extension_omnibox_api.cc
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/extension_omnibox_api.h"
+#include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
#include "base/json/json_writer.h"
#include "base/lazy_instance.h"
@@ -25,7 +25,7 @@ const char kOnInputStarted[] = "omnibox.onInputStarted";
const char kOnInputChanged[] = "omnibox.onInputChanged";
const char kOnInputEntered[] = "omnibox.onInputEntered";
const char kOnInputCancelled[] = "omnibox.onInputCancelled";
-}; // namespace events
+} // namespace events
namespace {
const char kDescriptionStylesOrderError[] =
@@ -41,17 +41,19 @@ const char kDescriptionStylesType[] = "type";
const char kDescriptionStylesOffset[] = "offset";
const char kDescriptionStylesLength[] = "length";
-static base::LazyInstance<base::PropertyAccessor<ExtensionOmniboxSuggestion> >
+static base::LazyInstance<base::PropertyAccessor<
+ extensions::ExtensionOmniboxSuggestion> >
g_extension_omnibox_suggestion_property_accessor =
LAZY_INSTANCE_INITIALIZER;
-base::PropertyAccessor<ExtensionOmniboxSuggestion>& GetPropertyAccessor() {
+base::PropertyAccessor<extensions::ExtensionOmniboxSuggestion>&
+ GetPropertyAccessor() {
return g_extension_omnibox_suggestion_property_accessor.Get();
}
// Returns the suggestion object set by the extension via the
// omnibox.setDefaultSuggestion call, or NULL if it was never set.
-const ExtensionOmniboxSuggestion* GetDefaultSuggestionForExtension(
+const extensions::ExtensionOmniboxSuggestion* GetDefaultSuggestionForExtension(
Profile* profile, const std::string& extension_id) {
const Extension* extension =
profile->GetExtensionService()->GetExtensionById(extension_id, false);
@@ -61,7 +63,9 @@ const ExtensionOmniboxSuggestion* GetDefaultSuggestionForExtension(
profile->GetExtensionService()->GetPropertyBag(extension));
}
-}; // namespace
+} // namespace
+
+namespace extensions {
Matt Perry 2012/05/01 01:23:21 Move this to right after the #include statements.
vabr (Chromium) 2012/05/01 02:06:50 Done.
// static
void ExtensionOmniboxEventRouter::OnInputStarted(
@@ -295,3 +299,5 @@ void LaunchAppFromOmnibox(const AutocompleteMatch& match,
Browser::OpenApplication(profile, extension, launch_container, GURL(),
disposition);
}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698