Commit 36e87aaa authored by tfarina@chromium.org's avatar tfarina@chromium.org

renderer/extensions: Return v8::False() where possible.

BUG=None
TEST=None

R=aa@chromium.org

Review URL: http://codereview.chromium.org/7648023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96884 0039d316-1c4b-4281-b951-d872f2087c98
parent 42441a98
......@@ -102,13 +102,13 @@ class ChromeAppExtensionWrapper : public v8::Extension {
static v8::Handle<v8::Value> GetIsInstalled(const v8::Arguments& args) {
WebFrame* frame = WebFrame::frameForCurrentContext();
if (!frame)
return v8::Boolean::New(false);
return v8::False();
GURL url(frame->document().url());
if (url.is_empty() ||
!url.is_valid() ||
!(url.SchemeIs("http") || url.SchemeIs("https")))
return v8::Boolean::New(false);
return v8::False();
const ::Extension* extension =
extension_dispatcher_->extensions()->GetByURL(frame->document().url());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment