Index: chrome/browser/ui/webui/instant_ui.cc |
diff --git a/chrome/browser/ui/webui/instant_ui.cc b/chrome/browser/ui/webui/instant_ui.cc |
index 0496421c3ee79fc887d3d0c8964db785559d6368..3a71bea3aa0a3abe2986bd1d5ab8d98328aa90e5 100644 |
--- a/chrome/browser/ui/webui/instant_ui.cc |
+++ b/chrome/browser/ui/webui/instant_ui.cc |
@@ -100,7 +100,7 @@ void InstantUIMessageHandler::GetPreferenceValue(const base::ListValue* args) { |
if (pref_name == prefs::kInstantUIZeroSuggestUrlPrefix) { |
PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs(); |
base::StringValue arg(prefs->GetString(pref_name.c_str())); |
- web_ui()->CallJavascriptFunction( |
+ web_ui()->CallJavascriptFunctionUnsafe( |
"instantConfig.getPreferenceValueResult", pref_name_value, arg); |
} |
} |
@@ -143,7 +143,8 @@ void InstantUIMessageHandler::GetDebugInfo(const base::ListValue* args) { |
} |
data.Set("entries", entries); |
- web_ui()->CallJavascriptFunction("instantConfig.getDebugInfoResult", data); |
+ web_ui()->CallJavascriptFunctionUnsafe("instantConfig.getDebugInfoResult", |
+ data); |
#endif |
} |