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

Issue 2587913006: chromeos: Notify about Chrome note-taking apps. (Closed)

Created:
4 years ago by Daniel Erat
Modified:
4 years ago
Reviewers:
xiyuan, jdufault
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Notify about Chrome note-taking apps. Make NoteTakingHelper notify its observers when Chrome note-taking apps are loaded or unloaded. BUG=633596 Committed: https://crrev.com/e97a722caafc2d3a8b807ee115bfb307f7d2cfd9 Cr-Commit-Position: refs/heads/master@{#440174}

Patch Set 1 #

Patch Set 2 : remove forward declaration of Extension #

Patch Set 3 : track profiles and register with ExtensionRegistry #

Patch Set 4 : work around profile lifecycle wonkiness in browser tests #

Total comments: 2

Patch Set 5 : use ScopedObserver #

Total comments: 4

Patch Set 6 : change CHECK to DCHECK #

Patch Set 7 : drop NOTIFICATION_PROFILE_DESTROYED and instead stop observing registries on destruction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -56 lines) Patch
M chrome/browser/chromeos/note_taking_helper.h View 1 2 3 4 5 6 6 chunks +50 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/note_taking_helper.cc View 1 2 3 4 5 6 7 chunks +88 lines, -31 lines 0 comments Download
M chrome/browser/chromeos/note_taking_helper_unittest.cc View 1 2 3 4 5 6 15 chunks +91 lines, -23 lines 0 comments Download

Messages

Total messages: 38 (25 generated)
Daniel Erat
4 years ago (2016-12-20 00:14:14 UTC) #3
Daniel Erat
upon testing on a device with the followup change to add the setting, i realized ...
4 years ago (2016-12-20 17:15:50 UTC) #9
Daniel Erat
adding xiyuan as a reviewer since you're the gardener right now, jacob. :-) as background: ...
4 years ago (2016-12-21 16:13:28 UTC) #17
xiyuan
Just one request. https://codereview.chromium.org/2587913006/diff/60001/chrome/browser/chromeos/note_taking_helper.cc File chrome/browser/chromeos/note_taking_helper.cc (right): https://codereview.chromium.org/2587913006/diff/60001/chrome/browser/chromeos/note_taking_helper.cc#newcode264 chrome/browser/chromeos/note_taking_helper.cc:264: extensions::ExtensionRegistry::Get(profile)->AddObserver(this); Suggest to use base::ScopedObserver. It ...
4 years ago (2016-12-21 16:46:51 UTC) #18
Daniel Erat
https://codereview.chromium.org/2587913006/diff/60001/chrome/browser/chromeos/note_taking_helper.cc File chrome/browser/chromeos/note_taking_helper.cc (right): https://codereview.chromium.org/2587913006/diff/60001/chrome/browser/chromeos/note_taking_helper.cc#newcode264 chrome/browser/chromeos/note_taking_helper.cc:264: extensions::ExtensionRegistry::Get(profile)->AddObserver(this); On 2016/12/21 16:46:51, xiyuan wrote: > Suggest to ...
4 years ago (2016-12-21 17:04:53 UTC) #19
xiyuan
lgtm https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc File chrome/browser/chromeos/note_taking_helper.cc (right): https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc#newcode363 chrome/browser/chromeos/note_taking_helper.cc:363: CHECK(!extension_registry_observer_.IsObserving(registry)); nit: DCHECK should be enough. NOTIFICATION_PROFILE_ADDED should ...
4 years ago (2016-12-21 17:11:17 UTC) #22
Daniel Erat
https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc File chrome/browser/chromeos/note_taking_helper.cc (right): https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc#newcode363 chrome/browser/chromeos/note_taking_helper.cc:363: CHECK(!extension_registry_observer_.IsObserving(registry)); On 2016/12/21 17:11:17, xiyuan wrote: > nit: DCHECK ...
4 years ago (2016-12-21 18:08:52 UTC) #25
xiyuan
https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc File chrome/browser/chromeos/note_taking_helper.cc (right): https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc#newcode363 chrome/browser/chromeos/note_taking_helper.cc:363: CHECK(!extension_registry_observer_.IsObserving(registry)); On 2016/12/21 18:08:51, Daniel Erat wrote: > On ...
4 years ago (2016-12-21 18:19:41 UTC) #26
Daniel Erat
https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc File chrome/browser/chromeos/note_taking_helper.cc (right): https://codereview.chromium.org/2587913006/diff/80001/chrome/browser/chromeos/note_taking_helper.cc#newcode363 chrome/browser/chromeos/note_taking_helper.cc:363: CHECK(!extension_registry_observer_.IsObserving(registry)); On 2016/12/21 18:19:41, xiyuan wrote: > On 2016/12/21 ...
4 years ago (2016-12-21 18:41:27 UTC) #27
xiyuan
lgtm++
4 years ago (2016-12-21 18:42:51 UTC) #30
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/2587913006/120001
4 years ago (2016-12-21 18:45:41 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-21 19:18:58 UTC) #36
commit-bot: I haz the power
4 years ago (2016-12-21 19:22:59 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e97a722caafc2d3a8b807ee115bfb307f7d2cfd9
Cr-Commit-Position: refs/heads/master@{#440174}

Powered by Google App Engine
This is Rietveld 408576698