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

Issue 8399022: Add a couple of notifications related settings to app/extensions sync: (Closed)

Created:
9 years, 1 month ago by Munjal (Google)
Modified:
9 years, 1 month ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, Erik does not do reviews, mihaip+watch_chromium.org, Aaron Boodman, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Add a couple of notifications related settings to app/extensions sync: - Whether notifications setup is done once already. - Whether the user has disabled notifications. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107692

Patch Set 1 #

Total comments: 26

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -28 lines) Patch
M chrome/browser/extensions/extension_prefs.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 3 chunks +33 lines, -1 line 2 comments Download
M chrome/browser/extensions/extension_service.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 4 chunks +47 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_sync_data.h View 4 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_sync_data.cc View 1 2 3 5 chunks +35 lines, -12 lines 0 comments Download
M chrome/browser/extensions/extension_sync_data_unittest.cc View 3 chunks +65 lines, -2 lines 0 comments Download
M chrome/browser/sync/protocol/app_specifics.proto View 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/sync/protocol/proto_value_conversions.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/protocol/proto_value_conversions.cc View 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Munjal (Google)
9 years, 1 month ago (2011-10-27 00:57:43 UTC) #1
asargent_no_longer_on_chrome
I have a bunch of naming suggestions along 2 lines: -I'd like us to be ...
9 years, 1 month ago (2011-10-27 16:52:21 UTC) #2
Munjal (Google)
Thanks for naming suggestions. When I named them, I didn't feel good about the names ...
9 years, 1 month ago (2011-10-27 18:35:04 UTC) #3
asargent_no_longer_on_chrome
extensions parts LGTM http://codereview.chromium.org/8399022/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/8399022/diff/1/chrome/browser/extensions/extension_service.cc#newcode2055 chrome/browser/extensions/extension_service.cc:2055: extension_prefs_->SetNotificationsInitialSetupDone(extension_id, value); On 2011/10/27 18:35:05, munjal ...
9 years, 1 month ago (2011-10-27 19:49:41 UTC) #4
lipalani1
lgtm for the protocol file and proto_value_conversion*.*.
9 years, 1 month ago (2011-10-27 19:51:46 UTC) #5
Munjal (Google)
9 years, 1 month ago (2011-10-27 20:01:49 UTC) #6
http://codereview.chromium.org/8399022/diff/1/chrome/browser/extensions/exten...
File chrome/browser/extensions/extension_service.cc (right):

http://codereview.chromium.org/8399022/diff/1/chrome/browser/extensions/exten...
chrome/browser/extensions/extension_service.cc:2055:
extension_prefs_->SetNotificationsInitialSetupDone(extension_id, value);
On 2011/10/27 19:49:41, Antony Sargent wrote:
> On 2011/10/27 18:35:05, munjal wrote:
> > On 2011/10/27 16:52:21, Antony Sargent wrote:
> > > nit: probably not worth writing this into the prefs if the extension isn't
> > > installed - perhaps move the check for the result of GetInstalledExtension
> up
> > to
> > > the top, and just exit this method if the extension isn't installed.
> (Perhaps
> > > add NOTREACHED() too? Should anyone really call this on a non-installed
> > > extension?)
> > 
> > Done.
> > 
> > I have one question though - is it possible to have a race between an app
> being
> > installed and the webstie calling the JS API (and hte user is logged in) and
> we
> > detect that the website is actually an app? I guess it is unlikely but
making
> > sure.
> A race condition is unlikely to happen - the way the code works for
implementing
> the browser process C++ side of the js method exposed in the renderer process,
> we need to have a valid installed Extension already.
> 

Great, good to know.

Powered by Google App Engine
This is Rietveld 408576698