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

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 017a96361f049935205058d42b0fd29a0fcb7a50..3c5a998d14892368d7e6073458c713f88d60da7b 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);
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.cc ('k') | chrome/browser/extensions/extension_preference_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698