Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: chrome/browser/value_store/value_store_util.cc

Issue 24021002: Propagate more information about ValueStore errors to callers, notably an (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add Pass*() Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/value_store/value_store_util.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/value_store/value_store_util.cc
diff --git a/chrome/browser/value_store/value_store_util.cc b/chrome/browser/value_store/value_store_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6924803d2a7e3ba2d184059699d8217fc742908b
--- /dev/null
+++ b/chrome/browser/value_store/value_store_util.cc
@@ -0,0 +1,21 @@
+// Copyright 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 "chrome/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
« no previous file with comments | « chrome/browser/value_store/value_store_util.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698