Index: chrome/browser/extensions/api/webview/webview_api.cc |
diff --git a/chrome/browser/extensions/api/webview/webview_api.cc b/chrome/browser/extensions/api/webview/webview_api.cc |
index 93898f05636fa76b671dc5a91835bfe9abe1c493..cfa2e34e948dbba6db75d3766a594f6bbe501409 100644 |
--- a/chrome/browser/extensions/api/webview/webview_api.cc |
+++ b/chrome/browser/extensions/api/webview/webview_api.cc |
@@ -349,12 +349,27 @@ void WebviewCaptureVisibleRegionFunction::OnCaptureFailure( |
SendResponse(false); |
} |
+WebviewSetNameFunction::WebviewSetNameFunction() { |
+} |
+ |
+WebviewSetNameFunction::~WebviewSetNameFunction() { |
+} |
+ |
WebviewSetZoomFunction::WebviewSetZoomFunction() { |
} |
WebviewSetZoomFunction::~WebviewSetZoomFunction() { |
} |
+bool WebviewSetNameFunction::RunAsyncSafe(WebViewGuest* guest) { |
+ scoped_ptr<webview::SetName::Params> params( |
+ webview::SetName::Params::Create(*args_)); |
+ EXTENSION_FUNCTION_VALIDATE(params.get()); |
+ guest->SetName(params->frame_name); |
+ SendResponse(true); |
+ return true; |
+} |
+ |
bool WebviewSetZoomFunction::RunAsyncSafe(WebViewGuest* guest) { |
scoped_ptr<webview::SetZoom::Params> params( |
webview::SetZoom::Params::Create(*args_)); |