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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 8786004: Revert "Restrict extension features based on the extension type." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/extensions/extension_constants.h" 5 #include "chrome/common/extensions/extension_constants.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 "This extension requires * version * or greater."; 159 "This extension requires * version * or greater.";
160 const char kDisabledByPolicy[] = 160 const char kDisabledByPolicy[] =
161 "This extension has been disabled by your administrator."; 161 "This extension has been disabled by your administrator.";
162 const char kDevToolsExperimental[] = 162 const char kDevToolsExperimental[] =
163 "You must request the 'experimental' permission in order to use the" 163 "You must request the 'experimental' permission in order to use the"
164 " DevTools API."; 164 " DevTools API.";
165 const char kExpectString[] = "Expect string value."; 165 const char kExpectString[] = "Expect string value.";
166 const char kExperimentalFlagRequired[] = 166 const char kExperimentalFlagRequired[] =
167 "Loading extensions with 'experimental' permission requires" 167 "Loading extensions with 'experimental' permission requires"
168 " --enable-experimental-extension-apis command line flag."; 168 " --enable-experimental-extension-apis command line flag.";
169 const char kFeatureNotAllowed[] = 169 const char kHostedAppsCannotIncludeExtensionFeatures[] =
170 "Feature '*' is not allowed in this type of manifest."; 170 "Hosted apps cannot use the extension feature '*'.";
171 const char kInvalidAllFrames[] = 171 const char kInvalidAllFrames[] =
172 "Invalid value for 'content_scripts[*].all_frames'."; 172 "Invalid value for 'content_scripts[*].all_frames'.";
173 const char kInvalidBackground[] = 173 const char kInvalidBackground[] =
174 "Invalid value for 'background_page'."; 174 "Invalid value for 'background_page'.";
175 const char kInvalidBackgroundInHostedApp[] = 175 const char kInvalidBackgroundInHostedApp[] =
176 "Invalid value for 'background_page'. Hosted apps must specify an " 176 "Invalid value for 'background_page'. Hosted apps must specify an "
177 "absolute HTTPS URL for the background page."; 177 "absolute HTTPS URL for the background page.";
178 const char kInvalidBrowserAction[] = 178 const char kInvalidBrowserAction[] =
179 "Invalid value for 'browser_action'."; 179 "Invalid value for 'browser_action'.";
180 const char kInvalidChromeURLOverrides[] = 180 const char kInvalidChromeURLOverrides[] =
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 "Wildcards are not allowed in extent URL pattern paths."; 422 "Wildcards are not allowed in extent URL pattern paths.";
423 const char kOneUISurfaceOnly[] = 423 const char kOneUISurfaceOnly[] =
424 "Only one of 'browser_action', 'page_action', and 'app' can be specified."; 424 "Only one of 'browser_action', 'page_action', and 'app' can be specified.";
425 const char kPermissionNotAllowed[] = 425 const char kPermissionNotAllowed[] =
426 "Access to permission '*' denied."; 426 "Access to permission '*' denied.";
427 const char kReservedMessageFound[] = 427 const char kReservedMessageFound[] =
428 "Reserved key * found in message catalog."; 428 "Reserved key * found in message catalog.";
429 const char kSidebarExperimental[] = 429 const char kSidebarExperimental[] =
430 "You must request the 'experimental' permission in order to use the" 430 "You must request the 'experimental' permission in order to use the"
431 " Sidebar API."; 431 " Sidebar API.";
432 const char kThemesCannotContainExtensions[] =
433 "A theme cannot contain extensions code.";
432 #if defined(OS_CHROMEOS) 434 #if defined(OS_CHROMEOS)
433 const char kIllegalPlugins[] = 435 const char kIllegalPlugins[] =
434 "Extensions cannot install plugins on Chrome OS"; 436 "Extensions cannot install plugins on Chrome OS";
435 #endif 437 #endif
436 } // namespace extension_manifest_errors 438 } // namespace extension_manifest_errors
437 439
438 namespace extension_urls { 440 namespace extension_urls {
439 std::string GetWebstoreLaunchURL() { 441 std::string GetWebstoreLaunchURL() {
440 std::string gallery_prefix = kGalleryBrowsePrefix; 442 std::string gallery_prefix = kGalleryBrowsePrefix;
441 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) 443 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL))
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 489 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
488 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; 490 const char kAppsPromoHistogram[] = "Extensions.AppsPromo";
489 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; 491 const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
490 #if defined(OS_CHROMEOS) 492 #if defined(OS_CHROMEOS)
491 const char kAccessExtensionPath[] = 493 const char kAccessExtensionPath[] =
492 "/usr/share/chromeos-assets/accessibility/extensions"; 494 "/usr/share/chromeos-assets/accessibility/extensions";
493 const char kChromeVoxDirectoryName[] = "access_chromevox"; 495 const char kChromeVoxDirectoryName[] = "access_chromevox";
494 #endif 496 #endif
495 497
496 } 498 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_manifests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698