Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / xwalk / application / extension / application_runtime_extension.cc
index 3f2cc8d..e5c936d 100644 (file)
@@ -39,10 +39,6 @@ AppRuntimeExtensionInstance::AppRuntimeExtensionInstance(
       "getManifest",
       base::Bind(&AppRuntimeExtensionInstance::OnGetManifest,
                  base::Unretained(this)));
-  handler_.Register(
-      "getMainDocumentID",
-      base::Bind(&AppRuntimeExtensionInstance::OnGetMainDocumentID,
-                 base::Unretained(this)));
 }
 
 void AppRuntimeExtensionInstance::HandleMessage(scoped_ptr<base::Value> msg) {
@@ -64,18 +60,5 @@ void AppRuntimeExtensionInstance::OnGetManifest(
   info->PostResult(results.Pass());
 }
 
-void AppRuntimeExtensionInstance::OnGetMainDocumentID(
-    scoped_ptr<XWalkExtensionFunctionInfo> info) {
-  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-  int main_routing_id = MSG_ROUTING_NONE;
-
-  if (Runtime* runtime = application_->GetMainDocumentRuntime())
-    main_routing_id = runtime->web_contents()->GetRoutingID();
-
-  scoped_ptr<base::ListValue> results(new base::ListValue());
-  results->AppendInteger(main_routing_id);
-  info->PostResult(results.Pass());
-}
-
 }  // namespace application
 }  // namespace xwalk