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

Issue 1392193004: Miscellaneous cleanup. (Closed)

Created:
5 years, 2 months ago by Peter Kasting
Modified:
5 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, dcheng, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Miscellaneous cleanup. * Rename a few things in the glass frame from "avatar" to "incognito", as the "avatar button" in that frame is only ever used for the incognito icon. * Shorten and/or clarify variable names and comments. * Condense code. * Add some consts. * A few changes to make diffs in upcoming patches smaller. * Replace a few hardcoded constants with uses of existing layout constants. * Remove unnecessary icon-painting functions in tab.cc; they were only used to draw the favicon, which doesn't need any of the special things they do. * Move some class-scope constants to file/function-scope. * Remove unnecessary "static"s on consts already in an anonymous namespace. BUG=none TEST=none R=sky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/2a033fafae209cabc698a346fd589db337dc2868

Patch Set 1 #

Patch Set 2 : Resync #

Patch Set 3 : Fix bad merge #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -275 lines) Patch
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 10 chunks +37 lines, -52 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 11 chunks +90 lines, -137 lines 1 comment Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 3 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 16 chunks +63 lines, -62 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 5 (1 generated)
Peter Kasting
5 years, 2 months ago (2015-10-09 07:47:03 UTC) #2
sky
LGTM - but consider the following. https://codereview.chromium.org/1392193004/diff/40001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/1392193004/diff/40001/chrome/browser/ui/views/tabs/tab.cc#newcode1549 chrome/browser/ui/views/tabs/tab.cc:1549: bounds.Inset(GetLayoutInsets(TAB)); Did you ...
5 years, 2 months ago (2015-10-09 16:31:38 UTC) #3
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2a033fafae209cabc698a346fd589db337dc2868 Cr-Commit-Position: refs/heads/master@{#353410}
5 years, 2 months ago (2015-10-09 23:00:27 UTC) #4
Peter Kasting
5 years, 2 months ago (2015-10-09 23:00:50 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
2a033fafae209cabc698a346fd589db337dc2868 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698