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

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

Issue 8609002: CrOs: Remove 16 exit time destructors and 11 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index d3bf8eec4de773a2c4e91675f0e8f83c46fa5583..0208973ed5c52021247d483f77fc725e66453fcf 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -473,7 +473,7 @@ gfx::Size ToolbarView::GetPreferredSize() {
browser_actions_->GetPreferredSize().width() +
app_menu_->GetPreferredSize().width() + kEdgeSpacing;
- static SkBitmap normal_background;
+ CR_DEFINE_STATIC_LOCAL(SkBitmap, normal_background, ());
if (normal_background.isNull()) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
normal_background = *rb.GetBitmapNamed(IDR_CONTENT_TOP_CENTER);

Powered by Google App Engine
This is Rietveld 408576698