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

Issue 2383893002: Optimize startup time of notification code by removing unused code. (Closed)

Created:
4 years, 2 months ago by Alexei Svitkine (slow)
Modified:
4 years, 2 months ago
Reviewers:
Jun Mukai, Dmitry Titov
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Optimize startup time of notification code by removing unused code. Generating the icon via GetAvatarIcon() can be expensive - according to UMA sampling profiler it takes ~35ms mean time from a recent Windows dev release. Turns out, it's not even used - so this CL simply removes it. Additionally, removes a unit test that stayed around after the code it was testing was removed because it wasn't referenced in any BUILD file: ui/message_center/cocoa/settings_controller_unittest.mm BUG=651848 Committed: https://crrev.com/5424cce0cb1592d7e5c025417861a1a540bd7569 Cr-Commit-Position: refs/heads/master@{#422550}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -180 lines) Patch
M chrome/browser/notifications/message_center_settings_controller.cc View 4 chunks +9 lines, -17 lines 0 comments Download
D ui/message_center/cocoa/settings_controller_unittest.mm View 1 chunk +0 lines, -152 lines 0 comments Download
M ui/message_center/fake_notifier_settings_provider.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/message_center/notifier_settings.h View 1 chunk +1 line, -6 lines 0 comments Download
M ui/message_center/notifier_settings.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
Alexei Svitkine (slow)
dimich: PTAL
4 years, 2 months ago (2016-10-03 15:34:29 UTC) #20
Dmitry Titov
LGTM, thanks for the good cleanup!
4 years, 2 months ago (2016-10-03 21:06:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2383893002/40001
4 years, 2 months ago (2016-10-03 21:08:45 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/272362)
4 years, 2 months ago (2016-10-03 21:22:26 UTC) #26
Alexei Svitkine (slow)
Oops, I thought Dmitry was an owner for ui/message_center too, but turns out he only ...
4 years, 2 months ago (2016-10-03 21:38:48 UTC) #28
Jun Mukai
lgtm
4 years, 2 months ago (2016-10-03 21:45:35 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2383893002/40001
4 years, 2 months ago (2016-10-03 21:47:01 UTC) #31
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years, 2 months ago (2016-10-03 21:55:03 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 21:57:32 UTC) #35
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5424cce0cb1592d7e5c025417861a1a540bd7569
Cr-Commit-Position: refs/heads/master@{#422550}

Powered by Google App Engine
This is Rietveld 408576698