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

Unified Diff: chrome/browser/extensions/extension_management_api.cc

Issue 10649003: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase on HEAD Created 8 years, 6 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/extension_management_api.cc
diff --git a/chrome/browser/extensions/extension_management_api.cc b/chrome/browser/extensions/extension_management_api.cc
index 35008a2c1da1f0f8228f169e86ee75ab9f65cf4a..36d83559a0136488bb67b34fcd4e76381984ac69 100644
--- a/chrome/browser/extensions/extension_management_api.cc
+++ b/chrome/browser/extensions/extension_management_api.cc
@@ -44,6 +44,7 @@ using content::BrowserThread;
using content::UtilityProcessHost;
using content::UtilityProcessHostClient;
using extensions::Extension;
+using extensions::PermissionMessages;
namespace events = extension_event_names;
namespace keys = extension_management_api_constants;
@@ -195,9 +196,9 @@ bool GetPermissionWarningsByIdFunction::RunImpl() {
return false;
}
- ExtensionPermissionMessages warnings = extension->GetPermissionMessages();
+ PermissionMessages warnings = extension->GetPermissionMessages();
ListValue* result = new ListValue();
- for (ExtensionPermissionMessages::const_iterator i = warnings.begin();
+ for (PermissionMessages::const_iterator i = warnings.begin();
i < warnings.end(); ++i)
result->Append(Value::CreateStringValue(i->message()));
result_.reset(result);
@@ -319,9 +320,9 @@ void GetPermissionWarningsByManifestFunction::OnParseSuccess(
return;
}
- ExtensionPermissionMessages warnings = extension->GetPermissionMessages();
+ PermissionMessages warnings = extension->GetPermissionMessages();
ListValue* result = new ListValue();
- for (ExtensionPermissionMessages::const_iterator i = warnings.begin();
+ for (PermissionMessages::const_iterator i = warnings.begin();
i < warnings.end(); ++i)
result->Append(Value::CreateStringValue(i->message()));
result_.reset(result);

Powered by Google App Engine
This is Rietveld 408576698