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

Issue 8802013: Fixing background mode manager to correctly display the name of the profile in the status icon. P... (Closed)

Created:
9 years ago by rpetterson
Modified:
9 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fixing background mode manager to correctly display the name of the profile in the status icon. Previously it was not being updated when Chrome first started up and it was also using the incorrect name. Now it gets the correct name from the profile info cache and also updates based on changes to the profile info cache. BUG=101837 TEST=start chrome with background apps and the status icon will have names populated correctly, also BackgroundModeManagerTest::ProfileInfoCacheObserver Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113458

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 16

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -18 lines) Patch
M chrome/browser/background/background_mode_manager.h View 1 2 3 4 5 6 7 8 10 chunks +38 lines, -6 lines 0 comments Download
M chrome/browser/background/background_mode_manager.cc View 1 2 3 4 5 6 7 8 11 chunks +100 lines, -12 lines 0 comments Download
M chrome/browser/background/background_mode_manager_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rpetterson
9 years ago (2011-12-05 22:49:54 UTC) #1
Andrew T Wilson (Slow)
Also, is there any way to add some simple test coverage for this (even just ...
9 years ago (2011-12-06 00:46:03 UTC) #2
rpetterson
I've added a test which tests the three new major functions, OnProfileAdded, OnProfileRemoved, and OnProfileNameChanged. ...
9 years ago (2011-12-06 05:52:33 UTC) #3
Andrew T Wilson (Slow)
LGTM with a few nits. http://codereview.chromium.org/8802013/diff/10002/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): http://codereview.chromium.org/8802013/diff/10002/chrome/browser/background/background_mode_manager.cc#newcode269 chrome/browser/background/background_mode_manager.cc:269: return background_mode_data_[profile]->name(); Perhaps we ...
9 years ago (2011-12-06 06:46:01 UTC) #4
rpetterson
All nits taken care of. Thanks! http://codereview.chromium.org/8802013/diff/10002/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): http://codereview.chromium.org/8802013/diff/10002/chrome/browser/background/background_mode_manager.cc#newcode269 chrome/browser/background/background_mode_manager.cc:269: return background_mode_data_[profile]->name(); On ...
9 years ago (2011-12-06 20:09:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlp@chromium.org/8802013/21001
9 years ago (2011-12-07 19:01:21 UTC) #6
commit-bot: I haz the power
9 years ago (2011-12-07 20:38:04 UTC) #7
Change committed as 113458

Powered by Google App Engine
This is Rietveld 408576698