status.cc 492 B

123456789101112131415161718
  1. // Copyright 2016 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. #include "components/ntp_snippets/status.h"
  5. namespace ntp_snippets {
  6. Status::Status(StatusCode status_code, const std::string& message)
  7. : code(status_code), message(message) {}
  8. Status Status::Success() {
  9. return Status(StatusCode::SUCCESS, std::string());
  10. }
  11. Status::~Status() = default;
  12. } // namespace ntp_snippets