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

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

Issue 9664053: Re-land 125247: Better error messages when using unsupported manifest features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/common/extensions/feature.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 const char kChromeVersionTooLow[] = 169 const char kChromeVersionTooLow[] =
170 "This extension requires * version * or greater."; 170 "This extension requires * version * or greater.";
171 const char kDisabledByPolicy[] = 171 const char kDisabledByPolicy[] =
172 "This extension has been disabled by your administrator."; 172 "This extension has been disabled by your administrator.";
173 const char kExpectString[] = "Expect string value."; 173 const char kExpectString[] = "Expect string value.";
174 const char kExperimentalFlagRequired[] = 174 const char kExperimentalFlagRequired[] =
175 "Loading extensions with 'experimental' permission is turned off by " 175 "Loading extensions with 'experimental' permission is turned off by "
176 "default. You can enable 'Experimental Extension APIs' " 176 "default. You can enable 'Experimental Extension APIs' "
177 "by visiting chrome://flags."; 177 "by visiting chrome://flags.";
178 const char kFeatureNotAllowed[] = 178 const char kFeatureNotAllowed[] =
179 "Feature '*' is not allowed in this type of manifest."; 179 "Feature '*' is not accessible. *";
180 const char kInvalidAllFrames[] = 180 const char kInvalidAllFrames[] =
181 "Invalid value for 'content_scripts[*].all_frames'."; 181 "Invalid value for 'content_scripts[*].all_frames'.";
182 const char kInvalidBackground[] = 182 const char kInvalidBackground[] =
183 "Invalid value for 'background_page'."; 183 "Invalid value for 'background_page'.";
184 const char kInvalidBackgroundAllowJsAccess[] = 184 const char kInvalidBackgroundAllowJsAccess[] =
185 "Invalid value for 'background.allow_js_access'."; 185 "Invalid value for 'background.allow_js_access'.";
186 const char kInvalidBackgroundAllowJsAccessNoPage[] = 186 const char kInvalidBackgroundAllowJsAccessNoPage[] =
187 "Must specify one of background.page or background.scripts to use" 187 "Must specify one of background.page or background.scripts to use"
188 " background.allow_js_access."; 188 " background.allow_js_access.";
189 const char kInvalidBackgroundCombination[] = 189 const char kInvalidBackgroundCombination[] =
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng"; 542 const char kCloudPrintAppId[] = "mfehgcgbbipciphmccgaenjidiccnmng";
543 const char kAppsPromoHistogram[] = "Extensions.AppsPromo"; 543 const char kAppsPromoHistogram[] = "Extensions.AppsPromo";
544 const char kAppLaunchHistogram[] = "Extensions.AppLaunch"; 544 const char kAppLaunchHistogram[] = "Extensions.AppLaunch";
545 #if defined(OS_CHROMEOS) 545 #if defined(OS_CHROMEOS)
546 const char kAccessExtensionPath[] = 546 const char kAccessExtensionPath[] =
547 "/usr/share/chromeos-assets/accessibility/extensions"; 547 "/usr/share/chromeos-assets/accessibility/extensions";
548 const char kChromeVoxDirectoryName[] = "access_chromevox"; 548 const char kChromeVoxDirectoryName[] = "access_chromevox";
549 #endif 549 #endif
550 550
551 } 551 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698