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

Issue 384823002: Introduce a stable set of errors for inline install (Closed)

Created:
6 years, 5 months ago by Devlin
Modified:
4 years, 9 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Introduce a stable set of errors for inline install In addition to a developer-readable string for inline install failures, include a stable error code. This isn't perfect, since a) the function prototype of function(error, errorCode) isn't great, and b) we kind of lose track of what went wrong after a certain point in the install process. Unfortunately, to fix a) requires either a breaking change or a revamp to our whole error reporting, and fixing b) requires stable error values at every point in our install process (which we don't have, and won't anytime soon). BUG=331887 TBR=benwells@chromium.org (app_list) TBR=yoshiki@chromium.org (file_manager) TBRs for trivial, no-functionality changes. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285029

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : Latest master #

Patch Set 4 : ChromeOS fix #

Patch Set 5 : Replace printf with vlog(1) in unrelated code so it passes presubmit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -126 lines) Patch
M chrome/browser/apps/ephemeral_app_launcher.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_misc.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/app_installer.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/startup_helper.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer_browsertest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_inline_installer_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
D chrome/browser/extensions/webstore_install_result.h View 1 2 1 chunk +0 lines, -75 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/extensions/api/webstore.json View 1 2 2 chunks +84 lines, -0 lines 1 comment Download
M chrome/common/extensions/api/webstore/webstore_api_constants.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webstore/webstore_api_constants.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 1 2 3 chunks +6 lines, -2 lines 0 comments Download
A + chrome/common/extensions/webstore_install_result.h View 1 2 2 chunks +12 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.h View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/webstore_custom_bindings.js View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_inline_install/install_non_verified_domain.html View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_inline_install/install_prohibited.html View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_inline_install/install_unpack_failure.html View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Devlin
6 years, 5 months ago (2014-07-10 20:29:56 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore.json File chrome/common/extensions/api/webstore.json (right): https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore.json#newcode16 chrome/common/extensions/api/webstore.json:16: { Add a comment in here (we support comments ...
6 years, 5 months ago (2014-07-10 20:54:28 UTC) #2
Devlin
https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore/webstore_api_constants.cc File chrome/common/extensions/api/webstore/webstore_api_constants.cc (right): https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore/webstore_api_constants.cc#newcode16 chrome/common/extensions/api/webstore/webstore_api_constants.cc:16: "otherError", // This corresponds to UNKNOWN_ERROR, but "other" sounds ...
6 years, 5 months ago (2014-07-10 21:16:59 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore/webstore_api_constants.cc File chrome/common/extensions/api/webstore/webstore_api_constants.cc (right): https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore/webstore_api_constants.cc#newcode16 chrome/common/extensions/api/webstore/webstore_api_constants.cc:16: "otherError", // This corresponds to UNKNOWN_ERROR, but "other" sounds ...
6 years, 5 months ago (2014-07-10 21:18:38 UTC) #4
Devlin
https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore.json File chrome/common/extensions/api/webstore.json (right): https://codereview.chromium.org/384823002/diff/20001/chrome/common/extensions/api/webstore.json#newcode16 chrome/common/extensions/api/webstore.json:16: { On 2014/07/10 20:54:27, kalman (OOO July 11-14) wrote: ...
6 years, 5 months ago (2014-07-10 22:11:43 UTC) #5
not at google - send to devlin
lgtm
6 years, 5 months ago (2014-07-10 22:39:43 UTC) #6
Devlin
+palmer@ for c/c/e/chrome_extension_messages.h (added an enum param, checked for bounds).
6 years, 5 months ago (2014-07-10 22:48:51 UTC) #7
palmer
I'm sorry, I've got too much on my plate right now. Can you get one ...
6 years, 5 months ago (2014-07-10 22:53:21 UTC) #8
Devlin
s/palmer/nasko.
6 years, 5 months ago (2014-07-10 22:59:09 UTC) #9
nasko
IPC LGTM
6 years, 5 months ago (2014-07-18 13:32:14 UTC) #10
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 5 months ago (2014-07-22 20:16:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/384823002/120001
6 years, 5 months ago (2014-07-22 20:18:07 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-22 23:57:21 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 00:00:39 UTC) #14
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/81632)
6 years, 5 months ago (2014-07-23 00:00:40 UTC) #15
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 5 months ago (2014-07-23 15:30:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/384823002/140001
6 years, 5 months ago (2014-07-23 15:31:57 UTC) #17
yoshiki
lgtm
6 years, 5 months ago (2014-07-23 16:36:12 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-23 17:53:28 UTC) #19
commit-bot: I haz the power
Change committed as 285029
6 years, 5 months ago (2014-07-23 20:24:08 UTC) #20
tmdiep
https://codereview.chromium.org/384823002/diff/140001/chrome/common/extensions/api/webstore.json File chrome/common/extensions/api/webstore.json (right): https://codereview.chromium.org/384823002/diff/140001/chrome/common/extensions/api/webstore.json#newcode82 chrome/common/extensions/api/webstore.json:82: "name": "launchFeatureDisabled" I saw this patch while merging. These ...
6 years, 5 months ago (2014-07-25 00:45:04 UTC) #21
Devlin
On 2014/07/25 00:45:04, tmdiep wrote: > https://codereview.chromium.org/384823002/diff/140001/chrome/common/extensions/api/webstore.json > File chrome/common/extensions/api/webstore.json (right): > > https://codereview.chromium.org/384823002/diff/140001/chrome/common/extensions/api/webstore.json#newcode82 > ...
6 years, 5 months ago (2014-07-25 15:54:42 UTC) #22
not at google - send to devlin
On 2014/07/25 15:54:42, Devlin wrote: > On 2014/07/25 00:45:04, tmdiep wrote: > > > https://codereview.chromium.org/384823002/diff/140001/chrome/common/extensions/api/webstore.json ...
6 years, 5 months ago (2014-07-25 16:00:58 UTC) #23
tmdiep
6 years, 4 months ago (2014-07-27 23:33:22 UTC) #24
Message was sent while issue was closed.
On 2014/07/25 16:00:58, kalman wrote:
> On 2014/07/25 15:54:42, Devlin wrote:
> > On 2014/07/25 00:45:04, tmdiep wrote:
> > >
> >
>
https://codereview.chromium.org/384823002/diff/140001/chrome/common/extension...
> > > File chrome/common/extensions/api/webstore.json (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/384823002/diff/140001/chrome/common/extension...
> > > chrome/common/extensions/api/webstore.json:82: "name":
> "launchFeatureDisabled"
> > > I saw this patch while merging.
> > > 
> > > These error codes are shared by the EphemeralAppLauncher and
> > > WebstoreStandaloneInstaller, so there are a couple that will not occur for
> > > inline installs:
> > > - launchFeatureDisabled
> > > - launchUnsupportedExtensionType
> > > I think we should exclude these from this interface.
> > 
> > I personally don't see the harm in leaving them in, especially if they do
find
> > their way into inline install at some point.  I can't see any real harm that
> > comes from leaving them in (is there any I'm missing?)  And it seems a lot
> > easier to say "keep these lists in sync" rather than "keep these lists in
> sync,
> > except for any that currently can never occur for inline install."  But
that's
> > just me - kalman@, any thoughts?
> 
> I can imagine a world in which inline install could be used to launch
ephemeral
> apps, and given it's simpler to leave them in I'm fine with that.

Ok, I'm fine with leaving them in. There is no real harm in doing so, only that
some developers may wonder what causes those error codes when they see it in the
API documentation.

Powered by Google App Engine
This is Rietveld 408576698