On Fri, Jan 8, 2010 at 7:08 PM, Antoine Labour <pi...@google.com> wrote: > How about: > int fd = open(file_or_url, O_RDONLY); > if (fd >= 0) { > close(fd); > OpenLocalFile(file_or_url); > } else { > OpenURL(file_or_url); > }
s/open/access/, but otherwise this is fine. It would be nice to add --local-file and --url to allow people to disambiguate an arbitrary string. AGL
-- Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev