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

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed)

Created:
6 years, 7 months ago by tmdiep
Modified:
6 years, 7 months ago
Reviewers:
benwells
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org, vandebo (ex-Chrome), Lei Zhang, tfarina, dbeam+watch-ntp_chromium.org, haitaol+watch_chromium.org, tommycli, Greg Billock, estade+watch_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org, James Su, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Moved IS_EPHEMERAL flag to extension prefs This patch moves the IS_EPHEMERAL flag from the Extension class to extension prefs. This is because an Extension object is immutable and this flag needs to be changed after creation to quickly promote a running ephemeral app to being installed. Otherwise the install must be delayed until the ephemeral app is closed. BUG=374018 TBR=sky@chromium.org TEST=All automated tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272157

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed test todo and failures. Added some tests #

Patch Set 3 : Minor refactoring. Added comments. #

Total comments: 6

Patch Set 4 : Addressed review comments #

Patch Set 5 : Rebase #

Patch Set 6 : Fix up file header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+531 lines, -178 lines) Patch
M apps/saved_files_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/apps/ephemeral_app_browsertest.cc View 1 2 6 chunks +36 lines, -4 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_service.cc View 7 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/apps/shortcut_manager.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/extension_app_provider.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/management/management_api.cc View 6 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/preference/preference_api_prefs_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/app_process_apitest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_app_sorting_unittest.cc View 8 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 chunks +27 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 7 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 10 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_storage_monitor.cc View 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 3 4 6 chunks +10 lines, -4 lines 0 comments Download
A chrome/browser/extensions/extension_ui_util.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_ui_util.cc View 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_util.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_util.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/extensions/shared_module_service_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/media_galleries/media_galleries_test_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/ui/app_list/app_list_test_util.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/ui/app_list/app_list_test_util.cc View 1 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder.cc View 6 chunks +4 lines, -20 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_model_builder_unittest.cc View 1 3 chunks +3 lines, -23 lines 0 comments Download
M chrome/browser/ui/app_list/recommended_apps.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider_unittest.cc View 1 2 chunks +4 lines, -23 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 5 chunks +11 lines, -14 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/sync_helper.cc View 1 chunk +1 line, -2 lines 0 comments Download
A + chrome/test/data/extensions/app_list/Extensions/ebgmjfhpkngekpdlgfdbolkhfmofdfdf/1.0/main.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/app_list/Extensions/ebgmjfhpkngekpdlgfdbolkhfmofdfdf/1.0/manifest.json View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/app_list/Preferences View 1 1 chunk +19 lines, -0 lines 0 comments Download
M extensions/browser/api/runtime/runtime_api.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M extensions/browser/event_router.cc View 2 chunks +3 lines, -1 line 0 comments Download
M extensions/browser/extension_prefs.h View 1 2 3 4 4 chunks +6 lines, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 4 9 chunks +24 lines, -7 lines 0 comments Download
A extensions/browser/extension_util.h View 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/browser/extension_util.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M extensions/common/extension.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M extensions/common/extension.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/extensions.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
tmdiep
benwells: Before I went on leave, we discussed moving the IS_EPHEMERAL flag to prefs. Otherwise ...
6 years, 7 months ago (2014-05-15 02:18:42 UTC) #1
benwells
from a quick glance the approach lg. I haven't done more than glance though. Let ...
6 years, 7 months ago (2014-05-16 03:39:08 UTC) #2
benwells
https://codereview.chromium.org/282103003/diff/100001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/282103003/diff/100001/chrome/browser/extensions/extension_service.cc#newcode1700 chrome/browser/extensions/extension_service.cc:1700: bool is_ephemeral, Could we make ephemerality less central? Do ...
6 years, 7 months ago (2014-05-19 02:06:53 UTC) #3
tmdiep
https://codereview.chromium.org/282103003/diff/100001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/282103003/diff/100001/chrome/browser/extensions/extension_service.cc#newcode1700 chrome/browser/extensions/extension_service.cc:1700: bool is_ephemeral, On 2014/05/19 02:06:53, benwells wrote: > Could ...
6 years, 7 months ago (2014-05-19 02:51:16 UTC) #4
tmdiep
On 2014/05/19 02:06:53, benwells wrote: > Could we make ephemerality less central? > > Do ...
6 years, 7 months ago (2014-05-19 06:42:47 UTC) #5
benwells
On 2014/05/19 06:42:47, tmdiep wrote: > On 2014/05/19 02:06:53, benwells wrote: > > Could we ...
6 years, 7 months ago (2014-05-20 03:07:44 UTC) #6
tmdiep
On 2014/05/20 03:07:44, benwells wrote: > After discussing I'm OK with this as is. I ...
6 years, 7 months ago (2014-05-20 03:22:34 UTC) #7
benwells
lgtm
6 years, 7 months ago (2014-05-20 03:49:18 UTC) #8
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 7 months ago (2014-05-21 06:23:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/282103003/140001
6 years, 7 months ago (2014-05-21 06:25:04 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-21 20:02:54 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-21 20:17:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68921)
6 years, 7 months ago (2014-05-21 20:17:45 UTC) #13
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 7 months ago (2014-05-22 00:08:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/282103003/160001
6 years, 7 months ago (2014-05-22 00:12:00 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 06:24:19 UTC) #16
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 11:12:28 UTC) #17
Message was sent while issue was closed.
Change committed as 272157

Powered by Google App Engine
This is Rietveld 408576698