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

Unified Diff: chrome/browser/ui/chrome_select_file_policy.cc

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 5 years 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
Index: chrome/browser/ui/chrome_select_file_policy.cc
diff --git a/chrome/browser/ui/chrome_select_file_policy.cc b/chrome/browser/ui/chrome_select_file_policy.cc
index 1b322273c34401dcd5f1005c67338793d574afde..3d91e92f727e50757a5dece84e8c892ebe17d2fa 100644
--- a/chrome/browser/ui/chrome_select_file_policy.cc
+++ b/chrome/browser/ui/chrome_select_file_policy.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
+#include "components/infobars/core/infobar_delegate.h"
#include "components/infobars/core/simple_alert_infobar_delegate.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/vector_icons_public.h"
@@ -32,6 +33,7 @@ void ChromeSelectFilePolicy::SelectFileDenied() {
if (source_contents_) {
SimpleAlertInfoBarDelegate::Create(
InfoBarService::FromWebContents(source_contents_),
+ infobars::InfoBarDelegate::CHROME_SELECT_FILE_POLICY,
infobars::InfoBarDelegate::kNoIconID,
gfx::VectorIconId::VECTOR_ICON_NONE,
l10n_util::GetStringUTF16(IDS_FILE_SELECTION_DIALOG_INFOBAR), true);

Powered by Google App Engine
This is Rietveld 408576698