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

Issue 93883004: Sync the launch type pref for apps. (Closed)

Created:
7 years ago by calamity
Modified:
6 years, 11 months ago
Reviewers:
benwells, Nicolas Zea, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, sadrul, estade+watch_chromium.org, tfarina, maniscalco+watch_chromium.org, dbeam+watch-ntp_chromium.org, haitaol+watch_chromium.org, robertshield, albertb+watch_chromium.org, kalyank, chromium-apps-reviews_chromium.org, rsimha+watch_chromium.org, tim+watch_chromium.org, ben+ash_chromium.org, pedrosimonetti+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Sync the launch type pref for apps. This CL syncs the launch type pref for apps by adding a property to app_specifics.proto. The sync data is processed in ExtensionSyncService. extensions::SetLaunchType has been changed to take an ExtensionService so that it is able to sync the pref change when a launch type is updated. A value has been added to the LaunchType enum to represent an invalid launch type preference. BUG=181576 TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244112

Patch Set 1 : #

Patch Set 2 : better launch type validity checks #

Total comments: 7

Patch Set 3 : change launch_type to an enum in proto #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : add test for invalid value, make tests actually check things #

Total comments: 4

Patch Set 6 : fix nits #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : fix non-win compile error #

Patch Set 10 : unfix nit because it prevents testing of how invalid values are handled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -36 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/management/management_apitest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/app_sync_data.h View 1 2 3 4 4 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/app_sync_data.cc View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/extensions/launch_util.h View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/extensions/launch_util.cc View 1 2 3 4 4 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_app_helper.cc View 1 2 3 4 4 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_apps_sync_test.cc View 1 2 3 4 2 chunks +70 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension_constants.h View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M sync/protocol/app_specifics.proto View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M sync/protocol/proto_enum_conversions.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M sync/protocol/proto_enum_conversions.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
calamity
+benwells for chrome/browser/extensions and chrome/common/extensions/ OWNERS. +zea for sync/ OWNERS and high level sync review. ...
7 years ago (2013-12-17 04:40:13 UTC) #1
Nicolas Zea
High level questions: how is the launch type for a particular app set? Is it ...
7 years ago (2013-12-17 19:45:58 UTC) #2
calamity
On 2013/12/17 19:45:58, Nicolas Zea wrote: > High level questions: how is the launch type ...
7 years ago (2013-12-18 04:58:30 UTC) #3
Nicolas Zea
https://codereview.chromium.org/93883004/diff/80001/chrome/browser/extensions/app_sync_data.cc File chrome/browser/extensions/app_sync_data.cc (right): https://codereview.chromium.org/93883004/diff/80001/chrome/browser/extensions/app_sync_data.cc#newcode78 chrome/browser/extensions/app_sync_data.cc:78: launch_type_ = specifics.has_launch_type() It might be worth considering what ...
7 years ago (2013-12-18 21:14:03 UTC) #4
calamity
https://codereview.chromium.org/93883004/diff/80001/chrome/browser/extensions/app_sync_data.cc File chrome/browser/extensions/app_sync_data.cc (right): https://codereview.chromium.org/93883004/diff/80001/chrome/browser/extensions/app_sync_data.cc#newcode78 chrome/browser/extensions/app_sync_data.cc:78: launch_type_ = specifics.has_launch_type() On 2013/12/18 21:14:04, Nicolas Zea wrote: ...
7 years ago (2013-12-19 06:27:52 UTC) #5
Nicolas Zea
https://codereview.chromium.org/93883004/diff/80001/chrome/browser/extensions/app_sync_data.cc File chrome/browser/extensions/app_sync_data.cc (right): https://codereview.chromium.org/93883004/diff/80001/chrome/browser/extensions/app_sync_data.cc#newcode78 chrome/browser/extensions/app_sync_data.cc:78: launch_type_ = specifics.has_launch_type() On 2013/12/19 06:27:52, calamity wrote: > ...
7 years ago (2013-12-19 19:56:59 UTC) #6
calamity
Also had to change sync_app_helper.cc which did the comparison of synced apps. The tests weren't ...
6 years, 11 months ago (2013-12-30 06:13:31 UTC) #7
Nicolas Zea
sync LGTM
6 years, 11 months ago (2014-01-02 22:13:30 UTC) #8
benwells
lgtm with two baby nits https://codereview.chromium.org/93883004/diff/190002/chrome/browser/extensions/extension_sync_service.cc File chrome/browser/extensions/extension_sync_service.cc (right): https://codereview.chromium.org/93883004/diff/190002/chrome/browser/extensions/extension_sync_service.cc#newcode314 chrome/browser/extensions/extension_sync_service.cc:314: app_sync_data.launch_type() < extensions::NUM_LAUNCH_TYPES) { ...
6 years, 11 months ago (2014-01-06 05:56:31 UTC) #9
calamity
https://codereview.chromium.org/93883004/diff/190002/chrome/browser/extensions/extension_sync_service.cc File chrome/browser/extensions/extension_sync_service.cc (right): https://codereview.chromium.org/93883004/diff/190002/chrome/browser/extensions/extension_sync_service.cc#newcode314 chrome/browser/extensions/extension_sync_service.cc:314: app_sync_data.launch_type() < extensions::NUM_LAUNCH_TYPES) { On 2014/01/06 05:56:31, benwells wrote: ...
6 years, 11 months ago (2014-01-07 03:29:41 UTC) #10
calamity
TBR-ing sky@ for refactoring fallout. extensions::SetLaunchType now takes an ExtensionService instead of ExtensionPrefs so that ...
6 years, 11 months ago (2014-01-07 04:05:25 UTC) #11
calamity
On 2014/01/07 04:05:25, calamity wrote: > TBR-ing sky@ for refactoring fallout. > > extensions::SetLaunchType now ...
6 years, 11 months ago (2014-01-07 04:10:09 UTC) #12
sky
Said files LGTM
6 years, 11 months ago (2014-01-07 15:51:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/93883004/680001
6 years, 11 months ago (2014-01-09 05:22:22 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=209693
6 years, 11 months ago (2014-01-09 06:32:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/93883004/980001
6 years, 11 months ago (2014-01-10 05:18:04 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 06:48:39 UTC) #17
Message was sent while issue was closed.
Change committed as 244112

Powered by Google App Engine
This is Rietveld 408576698