Commit 9afecb6e authored by Benjamin Ackerman's avatar Benjamin Ackerman Committed by Commit Bot

[Extensions] Removing unused constants library.

The webstore_api_constants is no longer being used, so removing it.

Bug: 882045
Change-Id: If0ab15c26eb70c89a9bad3d236c0fa62b71ef2fb
Reviewed-on: https://chromium-review.googlesource.com/c/1299545
Commit-Queue: Benjamin Ackerman <ackermanb@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603205}
parent 9f95302a
......@@ -29,7 +29,6 @@
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/web_applications/components/web_app_helpers.h"
#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "chrome/common/render_messages.h"
......
......@@ -323,8 +323,6 @@ static_library("common") {
"extensions/api/system_indicator/system_indicator_handler.h",
"extensions/api/url_handlers/url_handlers_parser.cc",
"extensions/api/url_handlers/url_handlers_parser.h",
"extensions/api/webstore/webstore_api_constants.cc",
"extensions/api/webstore/webstore_api_constants.h",
"extensions/chrome_extension_messages.h",
"extensions/chrome_extensions_api_provider.cc",
"extensions/chrome_extensions_api_provider.h",
......
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
#include "base/macros.h"
#include "chrome/common/extensions/webstore_install_result.h"
namespace extensions {
namespace api {
namespace webstore {
// IMPORTANT: Keep this list in sync with both the definition in
// chrome/common/extensions/api/webstore.json and
// chrome/common/extensions/webstore_install_result.h!
const char* const kInstallResultCodes[] = {
"success",
"otherError",
"aborted",
"installInProgress",
"notPermitted",
"invalidId",
"webstoreRequestError",
"invalidWebstoreResponse",
"invalidManifest",
"iconError",
"userCancelled",
"blacklisted",
"missingDependencies",
"requirementViolations",
"blockedByPolicy",
"launchFeatureDisabled",
"launchUnsupportedExtensionType",
"launchInProgress",
};
static_assert(arraysize(kInstallResultCodes) ==
webstore_install::RESULT_LAST + 1,
"kInstallResultCodes should equal RESULT_LAST + 1");
// The "downloading" stage begins when the installer starts downloading modules
// for the extension.
const char kInstallStageDownloading[] = "downloading";
// The "installing" stage begins once all downloads are complete, and the
// CrxInstaller begins.
const char kInstallStageInstalling[] = "installing";
// The method in custom_webstore_bindings.js triggered when we enter a new
// install stage ("downloading" or "installing").
const char kOnInstallStageChangedMethodName[] = "onInstallStageChanged";
// The method in custom_webstore_bindings.js triggered when we update
// download progress.
const char kOnDownloadProgressMethodName[] = "onDownloadProgress";
} // namespace webstore
} // namespace api
} // namespace extensions
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_
#define CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_
namespace extensions {
namespace api {
namespace webstore {
// An enum for listener types. This is used when creating/reading the mask for
// IPC messages.
enum ListenerType {
INSTALL_STAGE_LISTENER = 1,
DOWNLOAD_PROGRESS_LISTENER = 1 << 1
};
// An enum to represent which stage the installation is in.
enum InstallStage {
INSTALL_STAGE_DOWNLOADING = 0,
INSTALL_STAGE_INSTALLING,
};
// Result codes returned by WebstoreStandaloneInstaller and its subclasses.
// IMPORTANT: Keep this list in sync with both the definition in
// chrome/common/extensions/api/webstore.json and
// chrome/common/extensions/webstore_install_result.h!
extern const char* const kInstallResultCodes[];
extern const char kInstallStageDownloading[];
extern const char kInstallStageInstalling[];
extern const char kOnInstallStageChangedMethodName[];
extern const char kOnDownloadProgressMethodName[];
} // namespace webstore
} // namespace api
} // namespace extensions
#endif // CHROME_COMMON_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_CONSTANTS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment