summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/file_system_natives.cc34
-rw-r--r--extensions/renderer/file_system_natives.h2
2 files changed, 0 insertions, 36 deletions
diff --git a/extensions/renderer/file_system_natives.cc b/extensions/renderer/file_system_natives.cc
index 67b5d13..d3b23af 100644
--- a/extensions/renderer/file_system_natives.cc
+++ b/extensions/renderer/file_system_natives.cc
@@ -11,7 +11,6 @@
#include "storage/common/fileapi/file_system_types.h"
#include "storage/common/fileapi/file_system_util.h"
#include "third_party/WebKit/public/platform/WebString.h"
-#include "third_party/WebKit/public/web/WebDOMError.h"
#include "third_party/WebKit/public/web/WebDOMFileSystem.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
@@ -28,9 +27,6 @@ FileSystemNatives::FileSystemNatives(ScriptContext* context)
RouteFunction("CrackIsolatedFileSystemName",
base::Bind(&FileSystemNatives::CrackIsolatedFileSystemName,
base::Unretained(this)));
- RouteFunction(
- "GetDOMError",
- base::Bind(&FileSystemNatives::GetDOMError, base::Unretained(this)));
}
void FileSystemNatives::GetIsolatedFileSystem(
@@ -124,34 +120,4 @@ void FileSystemNatives::CrackIsolatedFileSystemName(
filesystem_id.size()));
}
-void FileSystemNatives::GetDOMError(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- if (args.Length() != 2) {
- NOTREACHED();
- return;
- }
- if (!args[0]->IsString()) {
- NOTREACHED();
- return;
- }
- if (!args[1]->IsString()) {
- NOTREACHED();
- return;
- }
-
- std::string name(*v8::String::Utf8Value(args[0]));
- if (name.empty()) {
- NOTREACHED();
- return;
- }
- std::string message(*v8::String::Utf8Value(args[1]));
- // message is optional hence empty is fine.
-
- blink::WebDOMError dom_error = blink::WebDOMError::create(
- blink::WebString::fromUTF8(name), blink::WebString::fromUTF8(message));
- args.GetReturnValue().Set(
- dom_error.toV8Value(context()->v8_context()->Global(),
- args.GetIsolate()));
-}
-
} // namespace extensions
diff --git a/extensions/renderer/file_system_natives.h b/extensions/renderer/file_system_natives.h
index 8637326..ed6970c 100644
--- a/extensions/renderer/file_system_natives.h
+++ b/extensions/renderer/file_system_natives.h
@@ -21,8 +21,6 @@ class FileSystemNatives : public ObjectBackedNativeHandler {
void GetIsolatedFileSystem(const v8::FunctionCallbackInfo<v8::Value>& args);
void CrackIsolatedFileSystemName(
const v8::FunctionCallbackInfo<v8::Value>& args);
- // Constructs a DOMError object to be used in JavaScript.
- void GetDOMError(const v8::FunctionCallbackInfo<v8::Value>& args);
DISALLOW_COPY_AND_ASSIGN(FileSystemNatives);
};