diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 05:31:40 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 05:31:40 +0000 |
commit | 440b37b2c3a29be151a7262d9188d5e8151176fb (patch) | |
tree | b2cc9283d1efd597472619dcfd016a4a0f0e32ff /app/tree_node_model.h | |
parent | 6cd3bd20cd448bc1bca33748395bf4381dfb7fc6 (diff) | |
download | chromium_src-440b37b2c3a29be151a7262d9188d5e8151176fb.zip chromium_src-440b37b2c3a29be151a7262d9188d5e8151176fb.tar.gz chromium_src-440b37b2c3a29be151a7262d9188d5e8151176fb.tar.bz2 |
Remove the wstring TreeModelNode::GetTitle() and rename GetTitleAsString16() to GetTitle().
BUG=23581
TEST=builds and passes tests
Review URL: http://codereview.chromium.org/3279005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/tree_node_model.h')
-rw-r--r-- | app/tree_node_model.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/app/tree_node_model.h b/app/tree_node_model.h index 83e55c9..ac6475b 100644 --- a/app/tree_node_model.h +++ b/app/tree_node_model.h @@ -7,7 +7,6 @@ #pragma once #include <algorithm> -#include <string> #include <vector> #include "app/tree_model.h" @@ -17,7 +16,6 @@ #include "base/scoped_vector.h" #include "base/stl_util-inl.h" #include "base/string16.h" -#include "base/utf_string_conversions.h" // TreeNodeModel and TreeNodes provide an implementation of TreeModel around // TreeNodes. TreeNodes form a directed acyclic graph. @@ -71,11 +69,6 @@ class TreeNode : public TreeModelNode { public: TreeNode() : parent_(NULL) { } - // TODO(munjal): Remove wstring overload once all code is moved to string16. -#if !defined(WCHAR_T_IS_UTF16) - explicit TreeNode(const std::wstring& title) - : title_(WideToUTF16(title)), parent_(NULL) {} -#endif explicit TreeNode(const string16& title) : title_(title), parent_(NULL) {} @@ -162,13 +155,8 @@ class TreeNode : public TreeModelNode { title_ = string; } - // TODO(munjal): Remove wstring version and rename GetTitleAsString16 to - // GetTitle once all code is moved to string16. // Returns the title of the node. - virtual std::wstring GetTitle() const { - return UTF16ToWide(title_); - } - virtual const string16& GetTitleAsString16() const { + virtual const string16& GetTitle() const { return title_; } |