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

Issue 11418123: Some refactoring in file browser notifications: (Closed)

Created:
8 years, 1 month ago by tbarzic
Modified:
8 years ago
Reviewers:
stevenjb
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Some refactoring in file browser notifications: - remove GDATA notification types (they're not used anymore). - when creating notification id for DEVICE_FAIL notification, don't append count of fail notifications for the failed device (this was used with the old system notifications api to avoid removing and adding a notification with the same id in short time span; there were some problems with updating notification message) - make ShowNotificationWithMessage private - instead of using switch/case when determining notification parameters for type, get them from a global (file scoped) array - make notification id prefixes more descriptive - make sure there are not multiple DEVICE_HARD_UNPLUG messages for the same (multipartition) device TEST=existing BUG=163252 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170318

Patch Set 1 #

Total comments: 2

Patch Set 2 : nits from review #

Patch Set 3 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -150 lines) Patch
chrome/browser/chromeos/extensions/file_browser_event_router.cc View 2 chunks +5 lines, -5 lines 0 comments Download
chrome/browser/chromeos/extensions/file_browser_notifications.h View 1 4 chunks +17 lines, -12 lines 0 comments Download
chrome/browser/chromeos/extensions/file_browser_notifications.cc View 1 2 10 chunks +123 lines, -115 lines 0 comments Download
chrome/browser/chromeos/extensions/file_browser_notifications_browsertest.cc View 1 7 chunks +46 lines, -17 lines 0 comments Download
chrome/browser/chromeos/extensions/file_browser_notifications_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
tbarzic
Hey Steven, can you take a look at this (it's *not* urgent)? Toni
8 years, 1 month ago (2012-11-21 22:36:09 UTC) #1
stevenjb
lgtm https://codereview.chromium.org/11418123/diff/1/chrome/browser/chromeos/extensions/file_browser_notifications.h File chrome/browser/chromeos/extensions/file_browser_notifications.h (right): https://codereview.chromium.org/11418123/diff/1/chrome/browser/chromeos/extensions/file_browser_notifications.h#newcode39 chrome/browser/chromeos/extensions/file_browser_notifications.h:39: void RegisterDevice(const std::string& system_path); nit: blank line https://codereview.chromium.org/11418123/diff/1/chrome/browser/chromeos/extensions/file_browser_notifications_browsertest.cc ...
8 years ago (2012-11-27 01:20:08 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/11418123/8001
8 years ago (2012-11-29 19:07:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/11418123/8001
8 years ago (2012-11-29 21:36:44 UTC) #4
commit-bot: I haz the power
8 years ago (2012-11-30 00:47:55 UTC) #5
Message was sent while issue was closed.
Change committed as 170318

Powered by Google App Engine
This is Rietveld 408576698