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

Side by Side Diff: chrome/browser/extensions/api/management/management_api_constants.cc

Issue 696543002: Move the chrome.management API to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/api/management/management_api_constants.h"
6
7 namespace extension_management_api_constants {
8
9 const char kDisabledReasonKey[] = "disabledReason";
10
11 const char kDisabledReasonPermissionsIncrease[] = "permissions_increase";
12
13 const char kExtensionCreateError[] =
14 "Failed to create extension from manifest.";
15 const char kGestureNeededForEscalationError[] =
16 "Re-enabling an extension disabled due to permissions increase "
17 "requires a user gesture.";
18 const char kGestureNeededForUninstallError[] =
19 "chrome.management.uninstall requires a user gesture.";
20 const char kManifestParseError[] = "Failed to parse manifest.";
21 const char kNoExtensionError[] = "Failed to find extension with id *.";
22 const char kNotAnAppError[] = "Extension * is not an App.";
23 const char kUserCantModifyError[] = "Extension * cannot be modified by user.";
24 const char kUninstallCanceledError[] =
25 "Extension * uninstall canceled by user.";
26 const char kUserDidNotReEnableError[] =
27 "The user did not accept the re-enable dialog.";
28 const char kGestureNeededForCreateAppShortcutError[] =
29 "chrome.management.createAppShortcut requires a user gesture.";
30 const char kNoBrowserToCreateShortcut[] =
31 "There is no browser window to create shortcut.";
32 const char kCreateOnlyPackagedAppShortcutMac[] =
33 "Shortcuts can only be created for new-style packaged apps on Mac.";
34 const char kCreateShortcutCanceledError[] =
35 "App shortcuts creation canceled by user.";
36 const char kGestureNeededForSetLaunchTypeError[] =
37 "chrome.management.setLaunchType requires a user gesture.";
38 const char kLaunchTypeNotAvailableError[] =
39 "The launch type is not available for this app.";
40 const char kGestureNeededForGenerateAppForLinkError[] =
41 "chrome.management.generateAppForLink requires a user gesture.";
42 const char kInvalidURLError[] = "The URL \"*\" is invalid.";
43 const char kEmptyTitleError[] = "The title can not be empty.";
44 const char kGenerateAppForLinkInstallError[] =
45 "Failed to install the generated app.";
46
47 } // namespace extension_management_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698