diff options
Diffstat (limited to 'chromium/content/browser/appcache/appcache_internals_ui.cc')
-rw-r--r-- | chromium/content/browser/appcache/appcache_internals_ui.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/content/browser/appcache/appcache_internals_ui.cc b/chromium/content/browser/appcache/appcache_internals_ui.cc index 10f316e6135..0c83ce031fc 100644 --- a/chromium/content/browser/appcache/appcache_internals_ui.cc +++ b/chromium/content/browser/appcache/appcache_internals_ui.cc @@ -419,7 +419,7 @@ void AppCacheInternalsUI::OnAllAppCacheInfoReady( std::string incognito_path_prefix; if (browser_context()->IsOffTheRecord()) incognito_path_prefix = "Incognito "; - web_ui()->CallJavascriptFunction( + web_ui()->CallJavascriptFunctionUnsafe( kFunctionOnAllAppCacheInfoReady, base::StringValue(incognito_path_prefix + partition_path.AsUTF8Unsafe()), *GetListValueFromAppCacheInfoCollection(collection.get())); @@ -429,7 +429,7 @@ void AppCacheInternalsUI::OnAppCacheInfoDeleted( const base::FilePath& partition_path, const std::string& manifest_url, bool deleted) { - web_ui()->CallJavascriptFunction( + web_ui()->CallJavascriptFunctionUnsafe( kFunctionOnAppCacheInfoDeleted, base::StringValue(partition_path.AsUTF8Unsafe()), base::StringValue(manifest_url), base::FundamentalValue(deleted)); @@ -440,12 +440,12 @@ void AppCacheInternalsUI::OnAppCacheDetailsReady( const std::string& manifest_url, std::unique_ptr<AppCacheResourceInfoVector> resource_info_vector) { if (resource_info_vector) { - web_ui()->CallJavascriptFunction( + web_ui()->CallJavascriptFunctionUnsafe( kFunctionOnAppCacheDetailsReady, base::StringValue(manifest_url), base::StringValue(partition_path.AsUTF8Unsafe()), *GetListValueForAppCacheResourceInfoVector(resource_info_vector.get())); } else { - web_ui()->CallJavascriptFunction( + web_ui()->CallJavascriptFunctionUnsafe( kFunctionOnAppCacheDetailsReady, base::StringValue(manifest_url), base::StringValue(partition_path.AsUTF8Unsafe())); } @@ -483,7 +483,7 @@ void AppCacheInternalsUI::OnFileDetailsReady( if (data_length < response_info->response_data_size()) hex_dump.append("\nNote: data is truncated..."); hex_dump.append("</pre>"); - web_ui()->CallJavascriptFunction( + web_ui()->CallJavascriptFunctionUnsafe( kFunctionOnFileDetailsReady, *GetDictionaryValueForResponseEnquiry(response_enquiry), base::StringValue(headers), base::StringValue(hex_dump)); @@ -492,7 +492,7 @@ void AppCacheInternalsUI::OnFileDetailsReady( void AppCacheInternalsUI::OnFileDetailsFailed( const Proxy::ResponseEnquiry& response_enquiry, int net_result_code) { - web_ui()->CallJavascriptFunction( + web_ui()->CallJavascriptFunctionUnsafe( kFunctionOnFileDetailsFailed, *GetDictionaryValueForResponseEnquiry(response_enquiry), base::FundamentalValue(net_result_code)); |