FIXME: disable pdf viewer feature

This commit is contained in:
deepak1556 2018-03-15 22:57:06 +09:00 committed by Aleksei Kuzmin
parent e24c0dda5d
commit f5e1ee010b
4 changed files with 7 additions and 3 deletions

View file

@ -62,9 +62,11 @@ void LoadResourceBundle(const std::string& locale) {
bundle.AddDataPackFromPath(
pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak")),
ui::GetSupportedScaleFactors()[0]);
#if defined(ENABLE_PDF_VIEWER)
bundle.AddDataPackFromPath(
pak_dir.Append(FILE_PATH_LITERAL("pdf_viewer_resources.pak")),
ui::GetSupportedScaleFactors()[0]);
#endif // defined(ENABLE_PDF_VIEWER)
bundle.AddDataPackFromPath(pak_dir.Append(FILE_PATH_LITERAL(
"blink_image_resources_200_percent.pak")),
ui::SCALE_FACTOR_200P);

View file

@ -36,8 +36,10 @@ void LoadCommonResources() {
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
bundle.AddDataPackFromPath(GetResourcesPakFilePath(@"content_shell"),
ui::GetSupportedScaleFactors()[0]);
#if defined(ENABLE_PDF_VIEWER)
bundle.AddDataPackFromPath(GetResourcesPakFilePath(@"pdf_viewer_resources"),
ui::GetSupportedScaleFactors()[0]);
#endif // defined(ENABLE_PDF_VIEWER)
}
void MainDelegate::OverrideFrameworkBundlePath() {

View file

@ -3,7 +3,7 @@
'variables': {
'variables': {
'enable_osr%': 0, # FIXME(alexeykuzmin)
'enable_pdf_viewer%': 1,
'enable_pdf_viewer%': 0, # FIXME(deepak1556)
'enable_run_as_node%': 1,
},
'enable_osr%': '<(enable_osr)',

View file

@ -649,8 +649,6 @@
'chromium_src/library_loaders/libspeechd.h',
'<@(native_mate_files)',
'<(SHARED_INTERMEDIATE_DIR)/atom_natives.h',
'<(SHARED_INTERMEDIATE_DIR)/grit/pdf_viewer_resources_map.cc',
'<(SHARED_INTERMEDIATE_DIR)/grit/pdf_viewer_resources_map.h',
],
'lib_sources_linux': [
'chromium_src/chrome/browser/icon_loader_auralinux.cc',
@ -734,6 +732,8 @@
'atom/browser/ui/webui/pdf_viewer_ui.h',
'chromium_src/components/pdf/renderer/pepper_pdf_host.cc',
'chromium_src/components/pdf/renderer/pepper_pdf_host.h',
'<(SHARED_INTERMEDIATE_DIR)/grit/pdf_viewer_resources_map.cc',
'<(SHARED_INTERMEDIATE_DIR)/grit/pdf_viewer_resources_map.h',
],
}], # enable_pdf_viewer
['enable_run_as_node==1', {