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

Issue 118413003: Add hook for extension to check sync status. (Closed)

Created:
7 years ago by Rune Fevang
Modified:
7 years ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, haitaol+watch_chromium.org, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add hook for extension to check sync status. Adds a new function to preferencesPrivate that returns a list of unencrypted sync categories. Also changes preferencesPrivate to use a whitelist instead of being restricted to component extensions. BUG=326678 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241977

Patch Set 1 #

Total comments: 20

Patch Set 2 : kalman comments #

Total comments: 2

Patch Set 3 : NULL check' #

Total comments: 1

Messages

Total messages: 9 (0 generated)
Rune Fevang
kalman: extensions OWNER review zea: Am I using the sync APIs correctly? In particular is ...
7 years ago (2013-12-18 21:44:17 UTC) #1
not at google - send to devlin
some questions for zea but lgtm for extensions with a bunch of little things. https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc ...
7 years ago (2013-12-18 22:30:37 UTC) #2
Rune Fevang
https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc File chrome/browser/extensions/api/preferences_private/preferences_private_api.cc (right): https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc#newcode31 chrome/browser/extensions/api/preferences_private/preferences_private_api.cc:31: sync_service->AddObserver(this); On 2013/12/18 22:30:37, kalman wrote: > idiomatically all ...
7 years ago (2013-12-19 00:13:42 UTC) #3
Nicolas Zea
https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc File chrome/browser/extensions/api/preferences_private/preferences_private_api.cc (right): https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc#newcode25 chrome/browser/extensions/api/preferences_private/preferences_private_api.cc:25: ProfileSyncService* sync_service = On 2013/12/18 22:30:37, kalman wrote: > ...
7 years ago (2013-12-19 00:23:59 UTC) #4
Rune Fevang
https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc File chrome/browser/extensions/api/preferences_private/preferences_private_api.cc (right): https://codereview.chromium.org/118413003/diff/1/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc#newcode25 chrome/browser/extensions/api/preferences_private/preferences_private_api.cc:25: ProfileSyncService* sync_service = On 2013/12/19 00:23:59, Nicolas Zea wrote: ...
7 years ago (2013-12-19 00:35:48 UTC) #5
Nicolas Zea
lgtm
7 years ago (2013-12-19 01:07:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rfevang@chromium.org/118413003/40001
7 years ago (2013-12-19 20:07:26 UTC) #7
commit-bot: I haz the power
Change committed as 241977
7 years ago (2013-12-19 23:33:27 UTC) #8
Jeffrey Yasskin
7 years ago (2013-12-19 23:47:23 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/118413003/diff/40001/chrome/common/extensions...
File chrome/common/extensions/api/preferences_private.json (right):

https://codereview.chromium.org/118413003/diff/40001/chrome/common/extensions...
chrome/common/extensions/api/preferences_private.json:20: "description":
"Returns a list of sync categories the user has enabled without using a custom
passphrase for encryption",
Please document the list of possible category strings here, or say where in the
source the list is defined. These files are where we need to be able to look to
learn the contract for any new API.

Powered by Google App Engine
This is Rietveld 408576698