summaryrefslogtreecommitdiffstats
path: root/extensions/browser/value_store/value_store_util.cc
blob: 67a3a004af3d24c5de8a8c322dc4d3a4e4cc9b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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 "extensions/browser/value_store/value_store_util.h"

namespace value_store_util {

scoped_ptr<std::string> NewKey(const std::string& key) {
  return make_scoped_ptr(new std::string(key));
}

scoped_ptr<std::string> NoKey() {
  return scoped_ptr<std::string>();
}

scoped_ptr<ValueStore::Error> NoError() {
  return scoped_ptr<ValueStore::Error>();
}

}  // namespace value_store_util