Aaron, can you take a look? This is for the part of the api review ...
8 years, 9 months ago
(2012-03-20 18:56:53 UTC)
#1
Aaron, can you take a look?
This is for the part of the api review that was resolved (at least that was my
impression:) )
the rest of the api changes have been punted to M20..
Thanks
Aaron Boodman
.redirect("yoz")
8 years, 9 months ago
(2012-03-26 18:11:12 UTC)
#2
.redirect("yoz")
Yoyo Zhou
Mostly LG, but with a few comments. http://codereview.chromium.org/9741002/diff/19004/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): http://codereview.chromium.org/9741002/diff/19004/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode113 chrome/browser/chromeos/extensions/file_handler_util.cc:113: if (action_iter->get()->id() ...
8 years, 9 months ago
(2012-03-26 22:42:58 UTC)
#3
LGTM https://chromiumcodereview.appspot.com/9741002/diff/19004/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): https://chromiumcodereview.appspot.com/9741002/diff/19004/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode113 chrome/browser/chromeos/extensions/file_handler_util.cc:113: if (action_iter->get()->id() == action_id) On 2012/03/26 23:22:51, tbarzic ...
8 years, 9 months ago
(2012-03-27 00:54:19 UTC)
#5
LGTM
https://chromiumcodereview.appspot.com/9741002/diff/19004/chrome/browser/chro...
File chrome/browser/chromeos/extensions/file_handler_util.cc (right):
https://chromiumcodereview.appspot.com/9741002/diff/19004/chrome/browser/chro...
chrome/browser/chromeos/extensions/file_handler_util.cc:113: if
(action_iter->get()->id() == action_id)
On 2012/03/26 23:22:51, tbarzic wrote:
> On 2012/03/26 22:42:58, Yoyo Zhou wrote:
> > These ids look like they're user-provided, but I don't see what ensures the
> ids
> > are unique.
>
> I don't think there is anything..
So you may have unexpected results if the ids are not unique. But this is
probably not a big deal.
https://chromiumcodereview.appspot.com/9741002/diff/19004/chrome/common/exten...
File chrome/common/extensions/file_browser_handler.cc (right):
https://chromiumcodereview.appspot.com/9741002/diff/19004/chrome/common/exten...
chrome/common/extensions/file_browser_handler.cc:86: bool
FileBrowserHandler::CanCreate() const {
On 2012/03/26 23:22:51, tbarzic wrote:
> On 2012/03/26 22:42:58, Yoyo Zhou wrote:
> > Does write access imply being able to create? Do you intend for this to be
> used
> > to check "has the create file access permission" or to check "can create
> files"?
> > (In other words, if I want to be able to both edit files and create new
files,
> > what should I specify?)
>
> I plan to use this as check that the handler "has the create file access
> permission".
> The write permission could also imply create permission (in save as use case),
> but I'm not completely sure how we're going to implement this yet (we may also
> check that the handler has at least on "create" handler specified).
>
> Maybe it would be good to rename this?
Yeah, my comment is along the lines of: the functionality might not match the
name, so either the name or the functionality should change.
tbarzic
Thanks for the review! http://codereview.chromium.org/9741002/diff/19004/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): http://codereview.chromium.org/9741002/diff/19004/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode113 chrome/browser/chromeos/extensions/file_handler_util.cc:113: if (action_iter->get()->id() == action_id) On ...
8 years, 9 months ago
(2012-03-27 01:10:59 UTC)
#6
Thanks for the review!
http://codereview.chromium.org/9741002/diff/19004/chrome/browser/chromeos/ext...
File chrome/browser/chromeos/extensions/file_handler_util.cc (right):
http://codereview.chromium.org/9741002/diff/19004/chrome/browser/chromeos/ext...
chrome/browser/chromeos/extensions/file_handler_util.cc:113: if
(action_iter->get()->id() == action_id)
On 2012/03/27 00:54:20, Yoyo Zhou wrote:
> On 2012/03/26 23:22:51, tbarzic wrote:
> > On 2012/03/26 22:42:58, Yoyo Zhou wrote:
> > > These ids look like they're user-provided, but I don't see what ensures
the
> > ids
> > > are unique.
> >
> > I don't think there is anything..
>
> So you may have unexpected results if the ids are not unique. But this is
> probably not a big deal.
Yeah.. I'll try to address this as I implement new way of specifying file
filters (part 2 of the design doc).. should not be too hard
http://codereview.chromium.org/9741002/diff/19004/chrome/common/extensions/fi...
File chrome/common/extensions/file_browser_handler.cc (right):
http://codereview.chromium.org/9741002/diff/19004/chrome/common/extensions/fi...
chrome/common/extensions/file_browser_handler.cc:86: bool
FileBrowserHandler::CanCreate() const {
On 2012/03/27 00:54:20, Yoyo Zhou wrote:
> On 2012/03/26 23:22:51, tbarzic wrote:
> > On 2012/03/26 22:42:58, Yoyo Zhou wrote:
> > > Does write access imply being able to create? Do you intend for this to be
> > used
> > > to check "has the create file access permission" or to check "can create
> > files"?
> > > (In other words, if I want to be able to both edit files and create new
> files,
> > > what should I specify?)
> >
> > I plan to use this as check that the handler "has the create file access
> > permission".
> > The write permission could also imply create permission (in save as use
case),
> > but I'm not completely sure how we're going to implement this yet (we may
also
> > check that the handler has at least on "create" handler specified).
> >
> > Maybe it would be good to rename this?
>
> Yeah, my comment is along the lines of: the functionality might not match the
> name, so either the name or the functionality should change.
Done.
Issue 9741002: Adding file access permissions to fileBrowserHandler manifest.
(Closed)
Created 8 years, 9 months ago by tbarzic
Modified 8 years, 9 months ago
Reviewers: zel, Yoyo Zhou, Aaron Boodman
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 14