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

Issue 114263005: Convert Extension* to extension id in AppLaunchParams. (Closed)

Created:
7 years ago by koz (OOO until 15th September)
Modified:
7 years ago
Reviewers:
tapted, benwells, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, jeremya+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Convert Extension* to extension id in AppLaunchParams. Having raw Extension pointers is problematic because an extension may be reloaded during the lifetime of AppLaunchParams, which will invalidate the pointer. This also converts CommandLine* to CommandLine and lets the empty command line represent "no command line". BUG=323220 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241143

Patch Set 1 #

Total comments: 8

Patch Set 2 : respond to comments #

Total comments: 6

Patch Set 3 : respond to comments #

Patch Set 4 : fix compile #

Patch Set 5 : fix compile #

Patch Set 6 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -27 lines) Patch
M apps/app_load_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M apps/launcher.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M apps/launcher.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/socket_apitest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_apitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/extensions/application_launch.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/extensions/application_launch.cc View 1 2 3 4 5 7 chunks +32 lines, -10 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
koz (OOO until 15th September)
sky: for chrome/browser/ui/startup/startup_browser_creator_impl.cc tapted: general review benewlls: owners
7 years ago (2013-12-13 02:21:29 UTC) #1
tapted
https://codereview.chromium.org/114263005/diff/1/chrome/browser/ui/extensions/application_launch.cc File chrome/browser/ui/extensions/application_launch.cc (right): https://codereview.chromium.org/114263005/diff/1/chrome/browser/ui/extensions/application_launch.cc#newcode185 chrome/browser/ui/extensions/application_launch.cc:185: const extensions::Extension* const extension = GetExtension(params); nit: probably don't ...
7 years ago (2013-12-13 03:10:58 UTC) #2
koz (OOO until 15th September)
https://codereview.chromium.org/114263005/diff/1/chrome/browser/ui/extensions/application_launch.cc File chrome/browser/ui/extensions/application_launch.cc (right): https://codereview.chromium.org/114263005/diff/1/chrome/browser/ui/extensions/application_launch.cc#newcode185 chrome/browser/ui/extensions/application_launch.cc:185: const extensions::Extension* const extension = GetExtension(params); On 2013/12/13 03:10:58, ...
7 years ago (2013-12-13 03:54:42 UTC) #3
tapted
lgtm https://codereview.chromium.org/114263005/diff/20001/chrome/browser/ui/extensions/application_launch.cc File chrome/browser/ui/extensions/application_launch.cc (right): https://codereview.chromium.org/114263005/diff/20001/chrome/browser/ui/extensions/application_launch.cc#newcode403 chrome/browser/ui/extensions/application_launch.cc:403: extension_id(extension ? extension->id() : ""), nit: "" -> ...
7 years ago (2013-12-13 05:16:46 UTC) #4
benwells
Description nit: you are also changing CommandLine* to CommandLine, can you update the description to ...
7 years ago (2013-12-13 06:31:58 UTC) #5
benwells
On 2013/12/13 06:31:58, benwells wrote: > Description nit: you are also changing CommandLine* to CommandLine, ...
7 years ago (2013-12-13 06:32:31 UTC) #6
sky
LGTM
7 years ago (2013-12-13 17:03:33 UTC) #7
koz (OOO until 15th September)
Thanks all. https://codereview.chromium.org/114263005/diff/20001/chrome/browser/ui/extensions/application_launch.cc File chrome/browser/ui/extensions/application_launch.cc (right): https://codereview.chromium.org/114263005/diff/20001/chrome/browser/ui/extensions/application_launch.cc#newcode124 chrome/browser/ui/extensions/application_launch.cc:124: const Extension* extension = service->GetExtensionById( On 2013/12/13 ...
7 years ago (2013-12-16 00:21:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/114263005/40001
7 years ago (2013-12-16 00:22:01 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) cacheinvalidation_unittests, cc_unittests, check_deps, chromedriver2_unittests, components_unittests, content_browsertests, ...
7 years ago (2013-12-16 00:35:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/114263005/60001
7 years ago (2013-12-16 01:56:54 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204480
7 years ago (2013-12-16 02:16:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/114263005/80001
7 years ago (2013-12-16 03:01:10 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=202811
7 years ago (2013-12-16 03:19:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/114263005/100001
7 years ago (2013-12-16 04:24:50 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=202839
7 years ago (2013-12-16 05:24:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/114263005/100001
7 years ago (2013-12-16 22:53:33 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205430
7 years ago (2013-12-17 02:06:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/114263005/100001
7 years ago (2013-12-17 02:21:04 UTC) #19
commit-bot: I haz the power
7 years ago (2013-12-17 03:49:20 UTC) #20
Message was sent while issue was closed.
Change committed as 241143

Powered by Google App Engine
This is Rietveld 408576698