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

Unified Diff: chrome/browser/automation/automation_util.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 2 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/browser/automation/automation_util.cc
diff --git a/chrome/browser/automation/automation_util.cc b/chrome/browser/automation/automation_util.cc
index f1ea2415ad5492697374760230b3c0a024b5421e..12bf075c50d31a5ed965e6d2750375c0bac3457f 100644
--- a/chrome/browser/automation/automation_util.cc
+++ b/chrome/browser/automation/automation_util.cc
@@ -438,7 +438,7 @@ AutomationId GetIdForExtensionView(
return AutomationId(type, id);
}
-AutomationId GetIdForExtension(const Extension* extension) {
+AutomationId GetIdForExtension(const extensions::Extension* extension) {
return AutomationId(AutomationId::kTypeExtension, extension->id());
}
@@ -526,11 +526,11 @@ bool GetRenderViewForId(
bool GetExtensionForId(
const AutomationId& id,
Profile* profile,
- const Extension** extension) {
+ const extensions::Extension** extension) {
if (id.type() != AutomationId::kTypeExtension)
return false;
ExtensionService* service = profile->GetExtensionService();
- const Extension* installed_extension =
+ const extensions::Extension* installed_extension =
service->GetInstalledExtension(id.id());
if (installed_extension)
*extension = installed_extension;
@@ -550,7 +550,7 @@ bool DoesObjectWithIdExist(const AutomationId& id, Profile* profile) {
return GetExtensionRenderViewForId(id, profile, &rvh);
}
case AutomationId::kTypeExtension: {
- const Extension* extension;
+ const extensions::Extension* extension;
return GetExtensionForId(id, profile, &extension);
}
default:

Powered by Google App Engine
This is Rietveld 408576698