Commit 0744b2bc authored by dpapad's avatar dpapad Committed by Commit Bot

WebUI cleanup: Rename IDR_MD_EXTENSIONS_ to IDR_EXTENSIONS_.

This is part of the effort to remove unnecessary "md_" prefixes from various
parts of the WebUI codebase.

Bug: 887150
Change-Id: I5769e7064e8acd359a3293a42a3bded90072d0c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559460
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Reviewed-by: default avatarEsmael El-Moslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649248}
parent 58bdbbf1
...@@ -12,229 +12,229 @@ ...@@ -12,229 +12,229 @@
</outputs> </outputs>
<release seq="1"> <release seq="1">
<structures> <structures>
<structure name="IDR_MD_EXTENSIONS_ITEM_BEHAVIOR_HTML" <structure name="IDR_EXTENSIONS_ITEM_BEHAVIOR_HTML"
file="item_behavior.html" file="item_behavior.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_BEHAVIOR_JS" <structure name="IDR_EXTENSIONS_ITEM_BEHAVIOR_JS"
file="item_behavior.js" file="item_behavior.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_EXTENSIONS_HTML" <structure name="IDR_EXTENSIONS_EXTENSIONS_HTML"
file="extensions.html" file="extensions.html"
flattenhtml="true" flattenhtml="true"
allowexternalscript="true" allowexternalscript="true"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_CODE_SECTION_HTML" <structure name="IDR_EXTENSIONS_CODE_SECTION_HTML"
file="code_section.html" file="code_section.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_CODE_SECTION_JS" <structure name="IDR_EXTENSIONS_CODE_SECTION_JS"
file="code_section.js" file="code_section.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HTML" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HTML"
file="activity_log/activity_log.html" file="activity_log/activity_log.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_JS" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_JS"
file="activity_log/activity_log.js" file="activity_log/activity_log.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_HTML" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_HTML"
file="activity_log/activity_log_history.html" file="activity_log/activity_log_history.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_JS" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_JS"
file="activity_log/activity_log_history.js" file="activity_log/activity_log_history.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_ITEM_HTML" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_ITEM_HTML"
file="activity_log/activity_log_history_item.html" file="activity_log/activity_log_history_item.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_ITEM_JS" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_HISTORY_ITEM_JS"
file="activity_log/activity_log_history_item.js" file="activity_log/activity_log_history_item.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_HTML" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_HTML"
file="activity_log/activity_log_stream.html" file="activity_log/activity_log_stream.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_JS" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_JS"
file="activity_log/activity_log_stream.js" file="activity_log/activity_log_stream.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_ITEM_HTML" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_ITEM_HTML"
file="activity_log/activity_log_stream_item.html" file="activity_log/activity_log_stream_item.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_ITEM_JS" <structure name="IDR_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_STREAM_ITEM_JS"
file="activity_log/activity_log_stream_item.js" file="activity_log/activity_log_stream_item.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_DETAIL_VIEW_HTML" <structure name="IDR_EXTENSIONS_DETAIL_VIEW_HTML"
file="detail_view.html" file="detail_view.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_DETAIL_VIEW_JS" <structure name="IDR_EXTENSIONS_DETAIL_VIEW_JS"
file="detail_view.js" file="detail_view.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_DRAG_AND_DROP_HANDLER_HTML" <structure name="IDR_EXTENSIONS_DRAG_AND_DROP_HANDLER_HTML"
file="drag_and_drop_handler.html" file="drag_and_drop_handler.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_DRAG_AND_DROP_HANDLER_JS" <structure name="IDR_EXTENSIONS_DRAG_AND_DROP_HANDLER_JS"
file="drag_and_drop_handler.js" file="drag_and_drop_handler.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_DROP_OVERLAY_HTML" <structure name="IDR_EXTENSIONS_DROP_OVERLAY_HTML"
file="drop_overlay.html" file="drop_overlay.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_DROP_OVERLAY_JS" <structure name="IDR_EXTENSIONS_DROP_OVERLAY_JS"
file="drop_overlay.js" file="drop_overlay.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ERROR_PAGE_HTML" <structure name="IDR_EXTENSIONS_ERROR_PAGE_HTML"
file="error_page.html" file="error_page.html"
flattenhtml="true" flattenhtml="true"
allowexternalscript="true" allowexternalscript="true"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ERROR_PAGE_JS" <structure name="IDR_EXTENSIONS_ERROR_PAGE_JS"
file="error_page.js" file="error_page.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_KEYBOARD_SHORTCUTS_HTML" <structure name="IDR_EXTENSIONS_KEYBOARD_SHORTCUTS_HTML"
file="keyboard_shortcuts.html" file="keyboard_shortcuts.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_KEYBOARD_SHORTCUTS_JS" <structure name="IDR_EXTENSIONS_KEYBOARD_SHORTCUTS_JS"
file="keyboard_shortcuts.js" file="keyboard_shortcuts.js"
type="chrome_html" /> type="chrome_html" />
<if expr="chromeos"> <if expr="chromeos">
<structure name="IDR_MD_EXTENSIONS_KIOSK_BROWSER_PROXY_HTML" <structure name="IDR_EXTENSIONS_KIOSK_BROWSER_PROXY_HTML"
file="kiosk_browser_proxy.html" file="kiosk_browser_proxy.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_KIOSK_BROWSER_PROXY_JS" <structure name="IDR_EXTENSIONS_KIOSK_BROWSER_PROXY_JS"
file="kiosk_browser_proxy.js" file="kiosk_browser_proxy.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_KIOSK_DIALOG_HTML" <structure name="IDR_EXTENSIONS_KIOSK_DIALOG_HTML"
file="kiosk_dialog.html" file="kiosk_dialog.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_KIOSK_DIALOG_JS" <structure name="IDR_EXTENSIONS_KIOSK_DIALOG_JS"
file="kiosk_dialog.js" file="kiosk_dialog.js"
type="chrome_html" /> type="chrome_html" />
</if> </if>
<structure name="IDR_MD_EXTENSIONS_MANAGER_HTML" <structure name="IDR_EXTENSIONS_MANAGER_HTML"
file="manager.html" file="manager.html"
type="chrome_html" type="chrome_html"
flattenhtml="true" flattenhtml="true"
allowexternalscript="true" /> allowexternalscript="true" />
<structure name="IDR_MD_EXTENSIONS_MANAGER_JS" <structure name="IDR_EXTENSIONS_MANAGER_JS"
file="manager.js" file="manager.js"
type="chrome_html" type="chrome_html"
flattenhtml="true" /> flattenhtml="true" />
<structure name="IDR_MD_EXTENSIONS_ICONS_HTML" <structure name="IDR_EXTENSIONS_ICONS_HTML"
file="icons.html" file="icons.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_INSTALL_WARNINGS_DIALOG_HTML" <structure name="IDR_EXTENSIONS_INSTALL_WARNINGS_DIALOG_HTML"
file="install_warnings_dialog.html" file="install_warnings_dialog.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_INSTALL_WARNINGS_DIALOG_JS" <structure name="IDR_EXTENSIONS_INSTALL_WARNINGS_DIALOG_JS"
file="install_warnings_dialog.js" file="install_warnings_dialog.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_HTML" <structure name="IDR_EXTENSIONS_ITEM_HTML"
file="item.html" file="item.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_JS" <structure name="IDR_EXTENSIONS_ITEM_JS"
file="item.js" file="item.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_LIST_HTML" <structure name="IDR_EXTENSIONS_ITEM_LIST_HTML"
file="item_list.html" file="item_list.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_LIST_JS" <structure name="IDR_EXTENSIONS_ITEM_LIST_JS"
file="item_list.js" file="item_list.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_UTIL_HTML" <structure name="IDR_EXTENSIONS_ITEM_UTIL_HTML"
file="item_util.html" file="item_util.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_ITEM_UTIL_JS" <structure name="IDR_EXTENSIONS_ITEM_UTIL_JS"
file="item_util.js" file="item_util.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_LOAD_ERROR_HTML" <structure name="IDR_EXTENSIONS_LOAD_ERROR_HTML"
file="load_error.html" file="load_error.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_LOAD_ERROR_JS" <structure name="IDR_EXTENSIONS_LOAD_ERROR_JS"
file="load_error.js" file="load_error.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_HOST_PERMISSIONS_TOGGLE_LIST_HMTL" <structure name="IDR_EXTENSIONS_HOST_PERMISSIONS_TOGGLE_LIST_HMTL"
file="host_permissions_toggle_list.html" file="host_permissions_toggle_list.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_HOST_PERMISSIONS_TOGGLE_LIST_JS" <structure name="IDR_EXTENSIONS_HOST_PERMISSIONS_TOGGLE_LIST_JS"
file="host_permissions_toggle_list.js" file="host_permissions_toggle_list.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_NAVIGATION_HELPER_HTML" <structure name="IDR_EXTENSIONS_NAVIGATION_HELPER_HTML"
file="navigation_helper.html" file="navigation_helper.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_NAVIGATION_HELPER_JS" <structure name="IDR_EXTENSIONS_NAVIGATION_HELPER_JS"
file="navigation_helper.js" file="navigation_helper.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_OPTIONS_DIALOG_HTML" <structure name="IDR_EXTENSIONS_OPTIONS_DIALOG_HTML"
file="options_dialog.html" file="options_dialog.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_OPTIONS_DIALOG_JS" <structure name="IDR_EXTENSIONS_OPTIONS_DIALOG_JS"
file="options_dialog.js" file="options_dialog.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_PACK_DIALOG_HTML" <structure name="IDR_EXTENSIONS_PACK_DIALOG_HTML"
file="pack_dialog.html" file="pack_dialog.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_PACK_DIALOG_JS" <structure name="IDR_EXTENSIONS_PACK_DIALOG_JS"
file="pack_dialog.js" file="pack_dialog.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_PACK_DIALOG_ALERT_HTML" <structure name="IDR_EXTENSIONS_PACK_DIALOG_ALERT_HTML"
file="pack_dialog_alert.html" file="pack_dialog_alert.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_PACK_DIALOG_ALERT_JS" <structure name="IDR_EXTENSIONS_PACK_DIALOG_ALERT_JS"
file="pack_dialog_alert.js" file="pack_dialog_alert.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_RUNTIME_HOST_PERMISSIONS_HMTL" <structure name="IDR_EXTENSIONS_RUNTIME_HOST_PERMISSIONS_HMTL"
file="runtime_host_permissions.html" file="runtime_host_permissions.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_RUNTIME_HOST_PERMISSIONS_JS" <structure name="IDR_EXTENSIONS_RUNTIME_HOST_PERMISSIONS_JS"
file="runtime_host_permissions.js" file="runtime_host_permissions.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_RUNTIME_HOSTS_DIALOG_HTML" <structure name="IDR_EXTENSIONS_RUNTIME_HOSTS_DIALOG_HTML"
file="runtime_hosts_dialog.html" file="runtime_hosts_dialog.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_RUNTIME_HOSTS_DIALOG_JS" <structure name="IDR_EXTENSIONS_RUNTIME_HOSTS_DIALOG_JS"
file="runtime_hosts_dialog.js" file="runtime_hosts_dialog.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SERVICE_HTML" <structure name="IDR_EXTENSIONS_SERVICE_HTML"
file="service.html" file="service.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SERVICE_JS" <structure name="IDR_EXTENSIONS_SERVICE_JS"
file="service.js" file="service.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SHARED_STYLE_HTML" <structure name="IDR_EXTENSIONS_SHARED_STYLE_HTML"
file="shared_style.html" file="shared_style.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SHARED_VARS_HTML" <structure name="IDR_EXTENSIONS_SHARED_VARS_HTML"
file="shared_vars.html" file="shared_vars.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SHORTCUT_INPUT_HTML" <structure name="IDR_EXTENSIONS_SHORTCUT_INPUT_HTML"
file="shortcut_input.html" file="shortcut_input.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SHORTCUT_INPUT_JS" <structure name="IDR_EXTENSIONS_SHORTCUT_INPUT_JS"
file="shortcut_input.js" file="shortcut_input.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SHORTCUT_UTIL_HTML" <structure name="IDR_EXTENSIONS_SHORTCUT_UTIL_HTML"
file="shortcut_util.html" file="shortcut_util.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SHORTCUT_UTIL_JS" <structure name="IDR_EXTENSIONS_SHORTCUT_UTIL_JS"
file="shortcut_util.js" file="shortcut_util.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SIDEBAR_HTML" <structure name="IDR_EXTENSIONS_SIDEBAR_HTML"
file="sidebar.html" file="sidebar.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_SIDEBAR_JS" <structure name="IDR_EXTENSIONS_SIDEBAR_JS"
file="sidebar.js" file="sidebar.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_TOGGLE_ROW_HTML" <structure name="IDR_EXTENSIONS_TOGGLE_ROW_HTML"
file="toggle_row.html" file="toggle_row.html"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_TOGGLE_ROW_JS" <structure name="IDR_EXTENSIONS_TOGGLE_ROW_JS"
file="toggle_row.js" file="toggle_row.js"
type="chrome_html" /> type="chrome_html" />
<structure name="IDR_MD_EXTENSIONS_TOOLBAR_HTML" <structure name="IDR_EXTENSIONS_TOOLBAR_HTML"
file="toolbar.html" file="toolbar.html"
type="chrome_html" type="chrome_html"
flattenhtml="true" flattenhtml="true"
allowexternalscript="true" /> allowexternalscript="true" />
<structure name="IDR_MD_EXTENSIONS_TOOLBAR_JS" <structure name="IDR_EXTENSIONS_TOOLBAR_JS"
file="toolbar.js" file="toolbar.js"
type="chrome_html" type="chrome_html"
flattenhtml="true" /> flattenhtml="true" />
<structure name="IDR_MD_EXTENSIONS_STRINGS_HTML" <structure name="IDR_EXTENSIONS_STRINGS_HTML"
file="strings.html" file="strings.html"
type="chrome_html" /> type="chrome_html" />
</structures> </structures>
......
...@@ -12,9 +12,26 @@ ...@@ -12,9 +12,26 @@
</outputs> </outputs>
<release seq="1"> <release seq="1">
<includes> <includes>
<include name="IDR_MD_EXTENSIONS_VULCANIZED_HTML" file="${root_gen_dir}\chrome\browser\resources\md_extensions\vulcanized.html" use_base_dir="false" flattenhtml="true" allowexternalscript="true" type="BINDATA" compress="gzip" /> <include name="IDR_EXTENSIONS_VULCANIZED_HTML"
<include name="IDR_MD_EXTENSIONS_VULCANIZED_P2_HTML" file="${root_gen_dir}\chrome\browser\resources\md_extensions\vulcanized.p2.html" use_base_dir="false" flattenhtml="true" allowexternalscript="true" type="BINDATA" compress="gzip" /> file="${root_gen_dir}\chrome\browser\resources\md_extensions\vulcanized.html"
<include name="IDR_MD_EXTENSIONS_CRISPER_JS" file="${root_gen_dir}\chrome\browser\resources\md_extensions\crisper.js" use_base_dir="false" flattenhtml="true" type="BINDATA" compress="gzip" /> use_base_dir="false"
flattenhtml="true"
allowexternalscript="true"
type="BINDATA"
compress="gzip" />
<include name="IDR_EXTENSIONS_VULCANIZED_P2_HTML"
file="${root_gen_dir}\chrome\browser\resources\md_extensions\vulcanized.p2.html"
use_base_dir="false"
flattenhtml="true"
allowexternalscript="true"
type="BINDATA"
compress="gzip" />
<include name="IDR_EXTENSIONS_CRISPER_JS"
file="${root_gen_dir}\chrome\browser\resources\md_extensions\crisper.js"
use_base_dir="false"
flattenhtml="true"
type="BINDATA"
compress="gzip" />
</includes> </includes>
</release> </release>
</grit> </grit>
...@@ -342,11 +342,11 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile, ...@@ -342,11 +342,11 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile,
source->AddString(kLoadTimeClassesKey, GetLoadTimeClasses(in_dev_mode)); source->AddString(kLoadTimeClassesKey, GetLoadTimeClasses(in_dev_mode));
#if BUILDFLAG(OPTIMIZE_WEBUI) #if BUILDFLAG(OPTIMIZE_WEBUI)
source->AddResourcePath("crisper.js", IDR_MD_EXTENSIONS_CRISPER_JS); source->AddResourcePath("crisper.js", IDR_EXTENSIONS_CRISPER_JS);
source->SetDefaultResource( source->SetDefaultResource(
base::FeatureList::IsEnabled(features::kWebUIPolymer2) ? base::FeatureList::IsEnabled(features::kWebUIPolymer2)
IDR_MD_EXTENSIONS_VULCANIZED_P2_HTML : ? IDR_EXTENSIONS_VULCANIZED_P2_HTML
IDR_MD_EXTENSIONS_VULCANIZED_HTML); : IDR_EXTENSIONS_VULCANIZED_HTML);
source->UseGzip(); source->UseGzip();
#else #else
// Add all MD Extensions resources. // Add all MD Extensions resources.
...@@ -354,7 +354,7 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile, ...@@ -354,7 +354,7 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile,
source->AddResourcePath(kExtensionsResources[i].name, source->AddResourcePath(kExtensionsResources[i].name,
kExtensionsResources[i].value); kExtensionsResources[i].value);
} }
source->SetDefaultResource(IDR_MD_EXTENSIONS_EXTENSIONS_HTML); source->SetDefaultResource(IDR_EXTENSIONS_EXTENSIONS_HTML);
#endif #endif
return source; return source;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment