diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-09 11:37:30 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-09 11:37:30 +0000 |
commit | 5b50d88191babb2cb1e225434ea20b1b621b90f1 (patch) | |
tree | a405ac3fea79d723b19996cce319ec5f3ad12952 /apps/shell | |
parent | 8679de141b71ab776e267c8cde013147954bfd8b (diff) | |
download | chromium_src-5b50d88191babb2cb1e225434ea20b1b621b90f1.zip chromium_src-5b50d88191babb2cb1e225434ea20b1b621b90f1.tar.gz chromium_src-5b50d88191babb2cb1e225434ea20b1b621b90f1.tar.bz2 |
Remove the redundancy of both EXTENSION_FUNCTION_VALIDATE and
EXTENSION_FUNCTION_VALIDATE_TYPESAFE; make the former return a
"ValidationFailure" type with an operator for each required type, and delete
the latter.
BUG=365732
R=jyasskin@chromium.org
NOTRY=true
Review URL: https://codereview.chromium.org/269153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/shell')
-rw-r--r-- | apps/shell/browser/api/shell/shell_api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/shell/browser/api/shell/shell_api.cc b/apps/shell/browser/api/shell/shell_api.cc index c985025..c108b0f 100644 --- a/apps/shell/browser/api/shell/shell_api.cc +++ b/apps/shell/browser/api/shell/shell_api.cc @@ -53,7 +53,7 @@ ShellCreateWindowFunction::~ShellCreateWindowFunction() { ExtensionFunction::ResponseAction ShellCreateWindowFunction::Run() { scoped_ptr<CreateWindow::Params> params(CreateWindow::Params::Create(*args_)); - EXTENSION_FUNCTION_VALIDATE_TYPESAFE(params.get()); + EXTENSION_FUNCTION_VALIDATE(params.get()); // Convert "main.html" to "chrome-extension:/<id>/main.html". GURL url = GetExtension()->GetResourceURL(params->url); |