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

Unified Diff: chrome/browser/extensions/api/tabs/tabs.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/api/tabs/tabs.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs.cc b/chrome/browser/extensions/api/tabs/tabs.cc
index 38c2652771655d0c74c1368fe3712ba833cafbef..84def0fee8f4b26c9b93f9d7ddf1e1c7c67ee842 100644
--- a/chrome/browser/extensions/api/tabs/tabs.cc
+++ b/chrome/browser/extensions/api/tabs/tabs.cc
@@ -94,6 +94,7 @@ using content::OpenURLParams;
using content::Referrer;
using content::RenderViewHost;
using content::WebContents;
+using extensions::APIPermission;
using extensions::ScriptExecutor;
const int CaptureVisibleTabFunction::kDefaultQuality = 90;
@@ -1352,7 +1353,7 @@ void UpdateTabFunction::PopulateResult() {
if (!has_callback())
return;
- if (GetExtension()->HasAPIPermission(ExtensionAPIPermission::kTab)) {
+ if (GetExtension()->HasAPIPermission(APIPermission::kTab)) {
result_.reset(
ExtensionTabUtil::CreateTabValue(tab_contents_->web_contents()));
} else {

Powered by Google App Engine
This is Rietveld 408576698