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

Unified Diff: ios/web/webui/web_ui_ios_data_source_impl.mm

Issue 2961893002: Reverse true/false states of load_time_data_defaults_added_. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/web_ui_ios_data_source_impl.mm
diff --git a/ios/web/webui/web_ui_ios_data_source_impl.mm b/ios/web/webui/web_ui_ios_data_source_impl.mm
index 189722fac972e2c9eebe4512379345fc78878a54..80da6f827987621ea231f23fe4d57a1778eb930d 100644
--- a/ios/web/webui/web_ui_ios_data_source_impl.mm
+++ b/ios/web/webui/web_ui_ios_data_source_impl.mm
@@ -66,7 +66,7 @@ WebUIIOSDataSourceImpl::WebUIIOSDataSourceImpl(const std::string& source_name)
source_name_(source_name),
default_resource_(-1),
deny_xframe_options_(true),
- load_time_data_defaults_added_(true),
+ load_time_data_defaults_added_(false),
replace_existing_source_(true) {}
WebUIIOSDataSourceImpl::~WebUIIOSDataSourceImpl() {}
@@ -142,10 +142,10 @@ std::string WebUIIOSDataSourceImpl::GetMimeType(const std::string& path) const {
}
void WebUIIOSDataSourceImpl::EnsureLoadTimeDataDefaultsAdded() {
- if (!load_time_data_defaults_added_)
+ if (load_time_data_defaults_added_)
return;
- load_time_data_defaults_added_ = false;
+ load_time_data_defaults_added_ = true;
base::DictionaryValue defaults;
webui::SetLoadTimeDataDefaults(web::GetWebClient()->GetApplicationLocale(),
&defaults);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698