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

Unified Diff: base/strings/nullable_string16.h

Issue 16415016: Move nullable_string16.h to the string subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 7 years, 6 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 | « base/nullable_string16.h ('k') | content/browser/dom_storage/dom_storage_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/nullable_string16.h
diff --git a/base/nullable_string16.h b/base/strings/nullable_string16.h
similarity index 72%
copy from base/nullable_string16.h
copy to base/strings/nullable_string16.h
index dbcd37c8470ad74758e4d216e07a34b618f05993..73fe81e0842034eba4d918cafeb58dcd8d22f2a0 100644
--- a/base/nullable_string16.h
+++ b/base/strings/nullable_string16.h
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_NULLABLE_STRING16_H_
-#define BASE_NULLABLE_STRING16_H_
+#ifndef BASE_STRINGS_NULLABLE_STRING16_H_
+#define BASE_STRINGS_NULLABLE_STRING16_H_
#include "base/strings/string16.h"
+namespace base {
+
// This class is a simple wrapper for string16 which also contains a null
// state. This should be used only where the difference between null and
// empty is meaningful.
@@ -26,4 +28,10 @@ class NullableString16 {
bool is_null_;
};
-#endif // BASE_NULLABLE_STRING16_H_
+} // namespace
+
+// TODO(avi) update users of NullableString16 to use the namespace and remove
+// this "using".
+using base::NullableString16;
+
+#endif // BASE_STRINGS_NULLABLE_STRING16_H_
« no previous file with comments | « base/nullable_string16.h ('k') | content/browser/dom_storage/dom_storage_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698