Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1869)

Unified Diff: chrome/renderer/searchbox/searchbox_extension.cc

Issue 2651543007: Use explicit WebString conversions in remaining chrome/renderer files (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/page_capture_custom_bindings.cc ('k') | chrome/renderer/web_apps.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index dd6221e4c046fa0bdb3b804d2ccbfee79e3a9466..72d0b6b1347c74e71947d1921c5b00384585cd12 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -506,9 +506,8 @@ void SearchBoxExtension::DispatchChromeIdentityCheckResult(
const base::string16& identity,
bool identity_match) {
std::string escaped_identity = base::GetQuotedJSONString(identity);
- blink::WebString script(base::UTF8ToUTF16(base::StringPrintf(
- kDispatchChromeIdentityCheckResult,
- escaped_identity.c_str(),
+ blink::WebString script(blink::WebString::fromUTF8(base::StringPrintf(
+ kDispatchChromeIdentityCheckResult, escaped_identity.c_str(),
identity_match ? "true" : "false")));
Dispatch(frame, script);
}
@@ -522,9 +521,8 @@ void SearchBoxExtension::DispatchFocusChange(blink::WebFrame* frame) {
void SearchBoxExtension::DispatchHistorySyncCheckResult(
blink::WebFrame* frame,
bool sync_history) {
- blink::WebString script(base::UTF8ToUTF16(base::StringPrintf(
- kDispatchHistorySyncCheckResult,
- sync_history ? "true" : "false")));
+ blink::WebString script(blink::WebString::fromUTF8(base::StringPrintf(
+ kDispatchHistorySyncCheckResult, sync_history ? "true" : "false")));
Dispatch(frame, script);
}
« no previous file with comments | « chrome/renderer/extensions/page_capture_custom_bindings.cc ('k') | chrome/renderer/web_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698