Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
provide implementation instead of patching
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Oct 25, 2017
1 parent 4a4d3de commit e187f62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion chromium_src/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ source_set("browser") {
"chrome/browser/ui/browser_otr_state.cc",

"//chrome/browser/ui/chrome_select_file_policy.h",
"//chrome/browser/ui/chrome_select_file_policy.cc",
"chrome/browser/ui/chrome_select_file_policy.cc",

This comment has been minimized.

Copy link
@hferreiro

hferreiro Oct 26, 2017

Contributor

You forgot to add the file.

This comment has been minimized.

Copy link
@bridiver

bridiver Oct 26, 2017

Author Collaborator

thanks! fixed


"chrome/browser/ui/profile_error_dialog.cc",

Expand Down
17 changes: 0 additions & 17 deletions patches/master_patch.patch
Original file line number Diff line number Diff line change
Expand Up @@ -522,23 +522,6 @@ index 7acc7baa7cd01b9627e8d231a3a7848cf4ec2295..e857daff2ba3910223f1039f66364faa
// Finds TabStripModel which has a WebContents whose id is the given
// web_contents_id, and returns the WebContents index and the TabStripModel.
int FindTabStripModelById(int64_t target_web_contents_id,
diff --git a/chrome/browser/ui/chrome_select_file_policy.cc b/chrome/browser/ui/chrome_select_file_policy.cc
index 43dd8ee370f089af922b387fc57baa4183d9540a..c1392ba4beb20bc96c656cf5e6880e22e03348a2 100644
--- a/chrome/browser/ui/chrome_select_file_policy.cc
+++ b/chrome/browser/ui/chrome_select_file_policy.cc
@@ -30,10 +30,12 @@ bool ChromeSelectFilePolicy::CanOpenSelectFileDialog() {
void ChromeSelectFilePolicy::SelectFileDenied() {
// Show the InfoBar saying that file-selection dialogs are disabled.
if (source_contents_) {
+#ifdef MUON_CHROMIUM_BUILD
SimpleAlertInfoBarDelegate::Create(
InfoBarService::FromWebContents(source_contents_),
infobars::InfoBarDelegate::CHROME_SELECT_FILE_POLICY, nullptr,
l10n_util::GetStringUTF16(IDS_FILE_SELECTION_DIALOG_INFOBAR), true);
+#endif
} else {
LOG(WARNING) << "File-selection dialogs are disabled but no WebContents "
<< "is given to display the InfoBar.";
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn
index 653e7692e33d0ee06428366141e5c23043f66b0d..72e13e247e6ddaae02cd08cefafb43051f886055 100644
--- a/chrome/common/BUILD.gn
Expand Down

0 comments on commit e187f62

Please sign in to comment.