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

Unified Diff: chrome/browser/browser_theme_provider.cc

Issue 150202: Prefer arraysize() over sizeof(). (Closed)
Patch Set: Created 11 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_theme_provider.cc
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc
index c3e2bb4ceac6daad2ff15e000b0ed0c1d289ebca..314b726f758b3ca4056de4ee9ddddeb57043adad 100644
--- a/chrome/browser/browser_theme_provider.cc
+++ b/chrome/browser/browser_theme_provider.cc
@@ -125,7 +125,7 @@ BrowserThemeProvider::BrowserThemeProvider()
: rb_(ResourceBundle::GetSharedInstance()) {
static bool initialized = false;
if (!initialized) {
- for (size_t i = 0; i < sizeof(kToolbarButtonIDs); ++i) {
+ for (size_t i = 0; i < arraysize(kToolbarButtonIDs); ++i) {
button_images_[kToolbarButtonIDs[i]] = true;
}
frame_tints_[IDR_THEME_FRAME] = TINT_FRAME;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698