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

Unified Diff: chrome/common/extensions/permissions/chrome_permission_message_provider.cc

Issue 323633003: Change tabs + sessions permission warning (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/permissions/chrome_permission_message_provider.cc
===================================================================
--- chrome/common/extensions/permissions/chrome_permission_message_provider.cc (revision 275837)
+++ chrome/common/extensions/permissions/chrome_permission_message_provider.cc (working copy)
@@ -155,6 +155,18 @@
continue;
}
}
+ if (permissions->HasAPIPermission(APIPermission::kSessions) &&
+ id == PermissionMessage::kTabs) {
+ message_strings.push_back(l10n_util::GetStringUTF16(
+ IDS_EXTENSION_PROMPT_WARNING_TABS_AND_SESSIONS));
+ continue;
+ }
+ if (permissions->HasAPIPermission(APIPermission::kSessions) &&
+ id == PermissionMessage::kBrowsingHistory) {
+ message_strings.push_back(l10n_util::GetStringUTF16(
+ IDS_EXTENSION_PROMPT_WARNING_BROWSING_HISTORY_AND_SESSIONS));
+ continue;
+ }
message_strings.push_back(i->message());
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/extensions/permissions/permission_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698