summaryrefslogtreecommitdiffstats
path: root/extensions/common/install_warning.cc
blob: 3db5a5be077ef3e04e56f02baaed225d534f1670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2013 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 "extensions/common/install_warning.h"

namespace extensions {

InstallWarning::InstallWarning(const std::string& message) : message(message) {
}

InstallWarning::InstallWarning(const std::string& message,
                               const std::string& key)
    : message(message), key(key) {
}

InstallWarning::InstallWarning(const std::string& message,
                               const std::string& key,
                               const std::string& specific)
    : message(message), key(key), specific(specific) {
}

InstallWarning::~InstallWarning() {
}

void PrintTo(const InstallWarning& warning, ::std::ostream* os) {
  // This is just for test error messages, so no need to escape '"'
  // characters inside the message.
  *os << "InstallWarning(\"" << warning.message << "\")";
}

}  // namespace extensions