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

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

Issue 390019: Parse messages.json in ExtensionUnpacker (like we do for manifest).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 namespace extension_manifest_keys { 7 namespace extension_manifest_keys {
8 8
9 const wchar_t* kBackground = L"background_page"; 9 const wchar_t* kBackground = L"background_page";
10 const wchar_t* kBrowserAction = L"browser_action"; 10 const wchar_t* kBrowserAction = L"browser_action";
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 const char* kInvalidUpdateURL = 177 const char* kInvalidUpdateURL =
178 "Invalid value for update url: '[*]'."; 178 "Invalid value for update url: '[*]'.";
179 const char* kInvalidDefaultLocale = 179 const char* kInvalidDefaultLocale =
180 "Invalid value for default locale - locale name must be a string."; 180 "Invalid value for default locale - locale name must be a string.";
181 const char* kOneUISurfaceOnly = 181 const char* kOneUISurfaceOnly =
182 "An extension cannot have both a page action and a browser action."; 182 "An extension cannot have both a page action and a browser action.";
183 const char* kThemesCannotContainExtensions = 183 const char* kThemesCannotContainExtensions =
184 "A theme cannot contain extensions code."; 184 "A theme cannot contain extensions code.";
185 const char* kLocalesNoDefaultLocaleSpecified = 185 const char* kLocalesNoDefaultLocaleSpecified =
186 "Localization used, but default_locale wasn't specified in the manifest."; 186 "Localization used, but default_locale wasn't specified in the manifest.";
187 const char* kLocalesNoDefaultMessages =
188 "Default locale is defined but default data couldn't be loaded.";
187 const char* kLocalesNoValidLocaleNamesListed = 189 const char* kLocalesNoValidLocaleNamesListed =
188 "No valid locale name could be found in _locales directory."; 190 "No valid locale name could be found in _locales directory.";
191 const char* kLocalesTreeMissing =
192 "Default locale was specified, but _locales subtree is missing.";
193 const char* kLocalesMessagesFileMissing =
194 "Messages file is missing for locale.";
189 const char* kInvalidOptionsPage = 195 const char* kInvalidOptionsPage =
190 "Invalid value for 'options_page'."; 196 "Invalid value for 'options_page'.";
191 } // namespace extension_manifest_errors 197 } // namespace extension_manifest_errors
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698