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

Unified Diff: chrome/common/extensions/extension_process_policy.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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/common/extensions/extension_process_policy.cc
diff --git a/chrome/common/extensions/extension_process_policy.cc b/chrome/common/extensions/extension_process_policy.cc
index edadd0f48278c41218b0dfde15cc61c33bd6360c..15a173ac6f708f57be98fce119182ce5506c03bc 100644
--- a/chrome/common/extensions/extension_process_policy.cc
+++ b/chrome/common/extensions/extension_process_policy.cc
@@ -8,10 +8,11 @@
namespace extensions {
-const Extension* GetNonBookmarkAppExtension(
+const extensions::Extension* GetNonBookmarkAppExtension(
const ExtensionSet& extensions, const ExtensionURLInfo& url) {
// Exclude bookmark apps, which do not use the app process model.
- const Extension* extension = extensions.GetExtensionOrAppByURL(url);
+ const extensions::Extension* extension =
+ extensions.GetExtensionOrAppByURL(url);
if (extension && extension->from_bookmark())
extension = NULL;
return extension;
@@ -21,10 +22,12 @@ bool CrossesExtensionProcessBoundary(
const ExtensionSet& extensions,
const ExtensionURLInfo& old_url,
const ExtensionURLInfo& new_url) {
- const Extension* old_url_extension = GetNonBookmarkAppExtension(extensions,
- old_url);
- const Extension* new_url_extension = GetNonBookmarkAppExtension(extensions,
- new_url);
+ const extensions::Extension* old_url_extension = GetNonBookmarkAppExtension(
+ extensions,
+ old_url);
+ const extensions::Extension* new_url_extension = GetNonBookmarkAppExtension(
+ extensions,
+ new_url);
// TODO(creis): Temporary workaround for crbug.com/59285: Do not swap process
// to navigate from a hosted app to a normal page or another hosted app
« no previous file with comments | « chrome/common/extensions/extension_process_policy.h ('k') | chrome/common/extensions/extension_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698