chromium/chrome/browser/apps/platform_apps/install_chrome_app.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/apps/platform_apps/install_chrome_app.h"

#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/webstore_install_with_prompt.h"
#include "chrome/browser/extensions/webstore_standalone_installer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/common/extensions/webstore_install_result.h"
#include "components/crx_file/id_util.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/manifest_constants.h"

ExtensionRegistry;

namespace {

// The URL to the webstore page for a specific app.
const char kWebstoreUrlFormat[] =;

// Error given when the extension is not an app.
const char kInstallChromeAppErrorNotAnApp[] =;

// Returns the webstore URL for an app.
GURL GetAppInstallUrl(const std::string& app_id) {}

// Checks the manifest and completes the installation with NOT_PERMITTED if the
// extension is not an app.
class WebstoreInstallWithPromptAppsOnly
    : public extensions::WebstoreInstallWithPrompt {};

void WebstoreInstallWithPromptAppsOnly::OnManifestParsed() {}

}  // namespace

namespace install_chrome_app {

void InstallChromeApp(const std::string& app_id) {}

}  // namespace install_chrome_app