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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 2711473004: Clear the text cache when the tooltip text is updated. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 805f0015ed8ab7f693c233fd6dd97263dce6b3ca..86b35d04b8335983287d2d9853982ec8575ad399 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -250,7 +250,6 @@ class BookmarkButtonBase : public views::LabelButton {
private:
std::unique_ptr<gfx::SlideAnimation> show_animation_;
-
DISALLOW_COPY_AND_ASSIGN(BookmarkButtonBase);
};
@@ -289,7 +288,7 @@ class BookmarkButton : public BookmarkButtonBase {
void SetText(const base::string16& text) override {
BookmarkButtonBase::SetText(text);
- tooltip_text_.empty();
+ tooltip_text_.clear();
}
const char* GetClassName() const override { return kViewClassName; }
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698