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

Issue 13885007: Add API to load a unpacked project to developerPrivate. (Closed)

Created:
7 years, 8 months ago by Gaurav
Modified:
7 years, 8 months ago
Reviewers:
miket_OOO
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This adds 3 api's to developerPrivate. 1) Load an unpacked project (app / extension). 2) Get the list of projects. 3) Skeleton of copying a project from local filesystem to syncfs. Add API to load a unpacked project to developerPrivate. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195116

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added TODO's, fixes coming up in follow up cl. #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : fixed windows build break #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -1 line) Patch
M chrome/browser/extensions/api/developer_private/developer_private_api.h View 3 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/developer_private/developer_private_api.cc View 1 2 3 4 3 chunks +71 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/developer_private.idl View 1 2 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Gaurav
7 years, 8 months ago (2013-04-17 01:21:25 UTC) #1
miket_OOO
lgtm https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api/developer_private/developer_private_api.cc File chrome/browser/extensions/api/developer_private/developer_private_api.cc (right): https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api/developer_private/developer_private_api.cc#newcode936 chrome/browser/extensions/api/developer_private/developer_private_api.cc:936: path = path.Append(project_name); Please add a TODO to ...
7 years, 8 months ago (2013-04-18 03:11:59 UTC) #2
miket_OOO
Also: PLEASE PUT A TODO to add unit tests. We can't go much farther than ...
7 years, 8 months ago (2013-04-18 03:15:04 UTC) #3
Gaurav
https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api/developer_private/developer_private_api.cc File chrome/browser/extensions/api/developer_private/developer_private_api.cc (right): https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api/developer_private/developer_private_api.cc#newcode936 chrome/browser/extensions/api/developer_private/developer_private_api.cc:936: path = path.Append(project_name); On 2013/04/18 03:12:00, miket wrote: > ...
7 years, 8 months ago (2013-04-18 17:24:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/7001
7 years, 8 months ago (2013-04-18 17:24:37 UTC) #5
commit-bot: I haz the power
Presubmit check for 13885007-7001 failed and returned exit status 1. INFO:root:Found 4 file(s). Traceback (most ...
7 years, 8 months ago (2013-04-18 17:24:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/13001
7 years, 8 months ago (2013-04-18 17:28:14 UTC) #7
commit-bot: I haz the power
Presubmit check for 13885007-13001 failed and returned exit status 1. INFO:root:Found 4 file(s). Traceback (most ...
7 years, 8 months ago (2013-04-18 17:28:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/16001
7 years, 8 months ago (2013-04-18 17:46:41 UTC) #9
commit-bot: I haz the power
Presubmit check for 13885007-16001 failed and returned exit status 1. INFO:root:Found 4 file(s). Traceback (most ...
7 years, 8 months ago (2013-04-18 17:46:44 UTC) #10
Gaurav
Hi, The PRESUBMIT checks seems to fail to unable to import modules. "third_party.json_schema_compiler.model third_party.json_schema_compiler.json_parse" Running ...
7 years, 8 months ago (2013-04-18 18:15:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/16001
7 years, 8 months ago (2013-04-18 18:42:00 UTC) #12
commit-bot: I haz the power
Presubmit check for 13885007-16001 failed and returned exit status 1. INFO:root:Found 4 file(s). Traceback (most ...
7 years, 8 months ago (2013-04-18 18:42:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/16001
7 years, 8 months ago (2013-04-18 23:22:26 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-19 00:19:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/28003
7 years, 8 months ago (2013-04-19 01:51:07 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-19 01:51:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grv@chromium.org/13885007/23002
7 years, 8 months ago (2013-04-19 02:07:41 UTC) #18
commit-bot: I haz the power
Change committed as 195116
7 years, 8 months ago (2013-04-19 09:00:23 UTC) #19
miket_OOO
https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api/developer_private/developer_private_api.cc File chrome/browser/extensions/api/developer_private/developer_private_api.cc (right): https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api/developer_private/developer_private_api.cc#newcode936 chrome/browser/extensions/api/developer_private/developer_private_api.cc:936: path = path.Append(project_name); On 2013/04/18 17:24:06, Gaurav wrote: > ...
7 years, 8 months ago (2013-04-23 17:02:47 UTC) #20
Gaurav
7 years, 8 months ago (2013-04-23 18:08:33 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api...
File chrome/browser/extensions/api/developer_private/developer_private_api.cc
(right):

https://codereview.chromium.org/13885007/diff/1/chrome/browser/extensions/api...
chrome/browser/extensions/api/developer_private/developer_private_api.cc:936:
path = path.Append(project_name);
On 2013/04/23 17:02:47, miket wrote:
> On 2013/04/18 17:24:06, Gaurav wrote:
> > On 2013/04/18 03:12:00, miket wrote:
> > > Please add a TODO to sanitize this value, and further to assert that the
end
> > > result is within kUnpackedAppsFolder. I know that it's a private API, but
> it's
> > > still taking user-generated, external values, and this would be the
> > appropriate
> > > place to assert that it's not a value like "../../../My Documents/taxes." 
> > 
> > Done.
> 
> This didn't happen. What's going on?

Added the checks for folder name validation (was thinking that will ensure, that
the path will be within apps_target).

Will use the function as suggested by you in other diff.

Sorry about that.

Powered by Google App Engine
This is Rietveld 408576698