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

Side by Side Diff: extensions/common/manifest_constants.cc

Issue 140433003: tab capture: Change the permissions for tabs.captureVisibleTab(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/manifest_constants.h" 5 #include "extensions/common/manifest_constants.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 namespace manifest_keys { 9 namespace manifest_keys {
10 10
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 const char kLaunchContainerWindow[] = "window"; 213 const char kLaunchContainerWindow[] = "window";
214 214
215 } // namespace manifest_values 215 } // namespace manifest_values
216 216
217 // Extension-related error messages. Some of these are simple patterns, where a 217 // Extension-related error messages. Some of these are simple patterns, where a
218 // '*' is replaced at runtime with a specific value. This is used instead of 218 // '*' is replaced at runtime with a specific value. This is used instead of
219 // printf because we want to unit test them and scanf is hard to make 219 // printf because we want to unit test them and scanf is hard to make
220 // cross-platform. 220 // cross-platform.
221 namespace manifest_errors { 221 namespace manifest_errors {
222 222
223 const char kActiveTabPermissionNotGranted[] =
224 "The 'activeTab' permission is not in effect because this extension has "
225 "not been in invoked.";
226 const char kAllURLOrActiveTabNeeded[] =
227 "Either the '<all_urls>' or 'activeTab' permission is required.";
223 const char kAppsNotEnabled[] = 228 const char kAppsNotEnabled[] =
224 "Apps are not enabled."; 229 "Apps are not enabled.";
225 const char kBackgroundPermissionNeeded[] = 230 const char kBackgroundPermissionNeeded[] =
226 "Hosted apps that use 'background_page' must have the 'background' " 231 "Hosted apps that use 'background_page' must have the 'background' "
227 "permission."; 232 "permission.";
228 const char kBackgroundRequiredForPlatformApps[] = 233 const char kBackgroundRequiredForPlatformApps[] =
229 "Packaged apps must have a background page or background scripts."; 234 "Packaged apps must have a background page or background scripts.";
230 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL"; 235 const char kCannotAccessChromeUrl[] = "Cannot access a chrome:// URL";
231 const char kCannotAccessExtensionUrl[] = 236 const char kCannotAccessExtensionUrl[] =
232 "Cannot access a chrome-extension:// URL of different extension"; 237 "Cannot access a chrome-extension:// URL of different extension";
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 const char kWebRequestConflictsWithLazyBackground[] = 693 const char kWebRequestConflictsWithLazyBackground[] =
689 "The 'webRequest' API cannot be used with event pages."; 694 "The 'webRequest' API cannot be used with event pages.";
690 #if defined(OS_CHROMEOS) 695 #if defined(OS_CHROMEOS)
691 const char kIllegalPlugins[] = 696 const char kIllegalPlugins[] =
692 "Extensions cannot install plugins on Chrome OS"; 697 "Extensions cannot install plugins on Chrome OS";
693 #endif 698 #endif
694 699
695 } // namespace manifest_errors 700 } // namespace manifest_errors
696 701
697 } // namespace extensions 702 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/manifest_constants.h ('k') | extensions/common/permissions/permissions_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698