From 01d5525529cfc2ce50833b4183a18581264ce6c0 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Sun, 22 Aug 2010 00:17:18 +0000 Subject: Remove wstrings from bookmarks, part 9. This actually converts TreeNodeModel::SetTitle(node, title); this is used by bookmarks. BUG=23581 TEST=builds nad passes tests Review URL: http://codereview.chromium.org/3111024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57007 0039d316-1c4b-4281-b951-d872f2087c98 --- app/tree_model.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/tree_model.h') diff --git a/app/tree_model.h b/app/tree_model.h index e191745..d2e37b1 100644 --- a/app/tree_model.h +++ b/app/tree_model.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -10,6 +10,7 @@ #include #include "base/logging.h" +#include "base/string16.h" class SkBitmap; @@ -21,7 +22,9 @@ class TreeModel; class TreeModelNode { public: // Returns the title for the node. + // TODO(viettrungluu): remove wstring version and rename string16 version. virtual std::wstring GetTitle() const = 0; + virtual const string16& GetTitleAsString16() const = 0; protected: virtual ~TreeModelNode() {} @@ -79,7 +82,7 @@ class TreeModel { // Sets the title of the specified node. // This is only invoked if the node is editable and the user edits a node. virtual void SetTitle(TreeModelNode* node, - const std::wstring& title) { + const string16& title) { NOTREACHED(); } -- cgit v1.1