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

Unified Diff: chrome/browser/ui/views/tab_icon_view.cc

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: inline class name strings Created 5 years, 11 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
Index: chrome/browser/ui/views/tab_icon_view.cc
diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
index 400c7e4e0be61eee0bd3faf7d74a429967915eb2..7ffe8b2aeed7bdf05a87effe5048070d438cfb19 100644
--- a/chrome/browser/ui/views/tab_icon_view.cc
+++ b/chrome/browser/ui/views/tab_icon_view.cc
@@ -25,8 +25,12 @@
#include "ui/gfx/icon_util.h"
#endif
-static bool g_initialized = false;
-static gfx::ImageSkia* g_default_favicon = NULL;
+namespace {
+
+bool g_initialized = false;
+gfx::ImageSkia* g_default_favicon = nullptr;
+
+} // namespace
// static
void TabIconView::InitializeIfNeeded() {
@@ -155,6 +159,10 @@ void TabIconView::OnPaint(gfx::Canvas* canvas) {
PaintFavicon(canvas, *g_default_favicon);
}
+const char* TabIconView::GetClassName() const {
+ return "TabIconView";
+}
+
gfx::Size TabIconView::GetPreferredSize() const {
return gfx::Size(gfx::kFaviconSize, gfx::kFaviconSize);
}

Powered by Google App Engine
This is Rietveld 408576698