| Index: chrome/renderer/extensions/media_galleries_custom_bindings.cc
|
| ===================================================================
|
| --- chrome/renderer/extensions/media_galleries_custom_bindings.cc (revision 247534)
|
| +++ chrome/renderer/extensions/media_galleries_custom_bindings.cc (working copy)
|
| @@ -19,20 +19,11 @@
|
| // FileSystemObject GetMediaFileSystem(string file_system_url): construct
|
| // a file system object from a file system url.
|
| void GetMediaFileSystemObject(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| - if (args.Length() != 1) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| - if (!args[0]->IsString()) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| + CHECK_EQ(1, args.Length());
|
| + CHECK(args[0]->IsString());
|
|
|
| std::string fsid(*v8::String::Utf8Value(args[0]));
|
| - if (fsid.empty()) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| + CHECK(!fsid.empty());
|
|
|
| blink::WebFrame* webframe = blink::WebFrame::frameForCurrentContext();
|
| const GURL origin = GURL(webframe->document().securityOrigin().toString());
|
|
|