Remove wstrings from bookmarks, part 14.
Convert TreeNodeWithValue's methods to string16.
BUG=23581
TEST=builds and passes tests
Review URL: http://codereview.chromium.org/3198014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57337 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/app/tree_node_model.h b/app/tree_node_model.h
index b294911..83e55c9 100644
--- a/app/tree_node_model.h
+++ b/app/tree_node_model.h
@@ -38,9 +38,10 @@
// The following example creates a TreeNode with two children and then
// creates a TreeNodeModel from it:
//
-// TreeNodeWithValue<int> root = new TreeNodeWithValue<int>(0, L"root");
-// root.add(new TreeNodeWithValue<int>(1, L"child 1"));
-// root.add(new TreeNodeWithValue<int>(1, L"child 2"));
+// TreeNodeWithValue<int> root =
+// new TreeNodeWithValue<int>(ASCIIToUTF16("root"), 0);
+// root.add(new TreeNodeWithValue<int>(ASCIIToUTF16("child 1"), 1));
+// root.add(new TreeNodeWithValue<int>(ASCIIToUTF16("child 2"), 1));
// TreeNodeModel<TreeNodeWithValue<int>>* model =
// new TreeNodeModel<TreeNodeWithValue<int>>(root);
//
@@ -210,9 +211,9 @@
TreeNodeWithValue() { }
explicit TreeNodeWithValue(const ValueType& value)
- : ParentType(std::wstring()), value(value) { }
+ : ParentType(string16()), value(value) { }
- TreeNodeWithValue(const std::wstring& title, const ValueType& value)
+ TreeNodeWithValue(const string16& title, const ValueType& value)
: ParentType(title), value(value) { }
ValueType value;