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

Issue 7481023: Adding notifications for new sync types. (Closed)

Created:
9 years, 5 months ago by Andrew T Wilson (Slow)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, arv (Not doing code reviews), estade+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Adding NTP notifications for new sync types. BUG=90117, 92371 TEST=Sync everything, enable typed url sync, go to NTP, see notification, click on it, stop seeing notifications. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96316

Patch Set 1 #

Patch Set 2 : Now acknowledges sync types when notification is clocked. #

Total comments: 12

Patch Set 3 : Addressed review feedback. #

Total comments: 6

Patch Set 4 : More changes for review feedback. #

Total comments: 2

Patch Set 5 : Now stores acknowledged types in a ListValue, not a StringValue. #

Total comments: 8

Patch Set 6 : Addressed review feedback. #

Patch Set 7 : Merged with trunk. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -39 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 3 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/resources/new_tab.js View 1 2 3 3 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/most_visited_page.js View 1 2 3 4 5 6 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 3 chunks +53 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type.cc View 1 2 3 4 4 chunks +41 lines, -5 lines 0 comments Download
M chrome/browser/sync/syncable/model_type_unittest.cc View 1 2 3 4 3 chunks +30 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.cc View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 5 6 6 chunks +46 lines, -17 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Andrew T Wilson (Slow)
Please take a look.
9 years, 4 months ago (2011-08-01 23:38:35 UTC) #1
Andrew T Wilson (Slow)
On 2011/08/01 23:38:35, Andrew T Wilson wrote: > Please take a look. (arv: browser/resources/new_tab.js, browser/ui/webui ...
9 years, 4 months ago (2011-08-01 23:41:34 UTC) #2
Evan Stade
arv is on sabbatical. Please add this to ntp4 (under resources/ntp4) as well, which is ...
9 years, 4 months ago (2011-08-02 00:33:04 UTC) #3
akalin
http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode332 chrome/browser/sync/profile_sync_service.cc:332: pref_service->RegisterStringPref(prefs::kAcknowledgedSyncTypes, Wouldn't it better to have this as a ...
9 years, 4 months ago (2011-08-02 20:16:53 UTC) #4
Andrew T Wilson (Slow)
Added NTP4 support. Please take another look. http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode332 chrome/browser/sync/profile_sync_service.cc:332: pref_service->RegisterStringPref(prefs::kAcknowledgedSyncTypes, On ...
9 years, 4 months ago (2011-08-02 22:07:41 UTC) #5
Evan Stade
lgtm, thanks http://codereview.chromium.org/7481023/diff/10001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/7481023/diff/10001/chrome/browser/resources/ntp4/new_tab.js#newcode596 chrome/browser/resources/ntp4/new_tab.js:596: function showNotification(text, links, opt_close_handler) { opt_closeHandler http://codereview.chromium.org/7481023/diff/10001/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ...
9 years, 4 months ago (2011-08-02 22:18:37 UTC) #6
Andrew T Wilson (Slow)
Fred, any further comments? http://codereview.chromium.org/7481023/diff/10001/chrome/browser/resources/ntp4/new_tab.js File chrome/browser/resources/ntp4/new_tab.js (right): http://codereview.chromium.org/7481023/diff/10001/chrome/browser/resources/ntp4/new_tab.js#newcode596 chrome/browser/resources/ntp4/new_tab.js:596: function showNotification(text, links, opt_close_handler) { ...
9 years, 4 months ago (2011-08-03 19:03:33 UTC) #7
akalin
http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode332 chrome/browser/sync/profile_sync_service.cc:332: pref_service->RegisterStringPref(prefs::kAcknowledgedSyncTypes, On 2011/08/02 22:07:42, Andrew T Wilson wrote: > ...
9 years, 4 months ago (2011-08-04 01:26:06 UTC) #8
Andrew T Wilson (Slow)
Please take another look. http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/7481023/diff/2001/chrome/browser/sync/profile_sync_service.cc#newcode332 chrome/browser/sync/profile_sync_service.cc:332: pref_service->RegisterStringPref(prefs::kAcknowledgedSyncTypes, On 2011/08/04 01:26:06, akalin ...
9 years, 4 months ago (2011-08-07 02:45:38 UTC) #9
akalin
In the interest of landing this, LGTM; we can figure out the comments in model_type.cc ...
9 years, 4 months ago (2011-08-10 01:16:21 UTC) #10
Andrew T Wilson (Slow)
Gonna land this after another trybot run. Notes below. http://codereview.chromium.org/7481023/diff/20001/chrome/browser/sync/profile_sync_service.h File chrome/browser/sync/profile_sync_service.h (right): http://codereview.chromium.org/7481023/diff/20001/chrome/browser/sync/profile_sync_service.h#newcode472 chrome/browser/sync/profile_sync_service.h:472: ...
9 years, 4 months ago (2011-08-10 23:40:12 UTC) #11
commit-bot: I haz the power
9 years, 4 months ago (2011-08-11 03:39:50 UTC) #12
Change committed as 96316

Powered by Google App Engine
This is Rietveld 408576698