| Index: chrome/browser/extensions/extension_dom_clipboard_apitest.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_dom_clipboard_apitest.cc (revision 174946)
|
| +++ chrome/browser/extensions/extension_dom_clipboard_apitest.cc (working copy)
|
| @@ -22,7 +22,7 @@
|
| bool ExecutePasteInSelectedTab(bool* result);
|
|
|
| private:
|
| - bool ExecuteScriptInSelectedTab(const std::string& script, bool* result);
|
| + bool ExecuteScriptInSelectedTab(const std::wstring& script, bool* result);
|
| };
|
|
|
| bool ClipboardApiTest::LoadHostedApp(const std::string& app_name,
|
| @@ -54,22 +54,22 @@
|
| }
|
|
|
| bool ClipboardApiTest::ExecuteCopyInSelectedTab(bool* result) {
|
| - const char kScript[] =
|
| - "window.domAutomationController.send(document.execCommand('copy'))";
|
| + const wchar_t kScript[] =
|
| + L"window.domAutomationController.send(document.execCommand('copy'))";
|
| return ExecuteScriptInSelectedTab(kScript, result);
|
| }
|
|
|
| bool ClipboardApiTest::ExecutePasteInSelectedTab(bool* result) {
|
| - const char kScript[] =
|
| - "window.domAutomationController.send(document.execCommand('paste'))";
|
| + const wchar_t kScript[] =
|
| + L"window.domAutomationController.send(document.execCommand('paste'))";
|
| return ExecuteScriptInSelectedTab(kScript, result);
|
| }
|
|
|
| -bool ClipboardApiTest::ExecuteScriptInSelectedTab(const std::string& script,
|
| +bool ClipboardApiTest::ExecuteScriptInSelectedTab(const std::wstring& script,
|
| bool* result) {
|
| if (!content::ExecuteJavaScriptAndExtractBool(
|
| chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
|
| - "",
|
| + L"",
|
| script,
|
| result)) {
|
| message_ = "Failed to execute script in selected tab.";
|
|
|