Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / common / install_warning.cc
blob3db5a5be077ef3e04e56f02baaed225d534f1670
1 // Copyright (c) 2013 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.
5 #include "extensions/common/install_warning.h"
7 namespace extensions {
9 InstallWarning::InstallWarning(const std::string& message) : message(message) {
12 InstallWarning::InstallWarning(const std::string& message,
13 const std::string& key)
14 : message(message), key(key) {
17 InstallWarning::InstallWarning(const std::string& message,
18 const std::string& key,
19 const std::string& specific)
20 : message(message), key(key), specific(specific) {
23 InstallWarning::~InstallWarning() {
26 void PrintTo(const InstallWarning& warning, ::std::ostream* os) {
27 // This is just for test error messages, so no need to escape '"'
28 // characters inside the message.
29 *os << "InstallWarning(\"" << warning.message << "\")";
32 } // namespace extensions