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

Unified Diff: chrome/browser/ui/startup/default_browser_infobar_delegate.h

Issue 2139753002: Now correctly tracks the case where the default browser prompt is ignored. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: chrome/browser/ui/startup/default_browser_infobar_delegate.h
diff --git a/chrome/browser/ui/startup/default_browser_infobar_delegate.h b/chrome/browser/ui/startup/default_browser_infobar_delegate.h
index 99b7ffd64c03ea38a1110b93a81f168e00402b84..9b56c47501900e5f4b45fdd475fcf41c9fe6444f 100644
--- a/chrome/browser/ui/startup/default_browser_infobar_delegate.h
+++ b/chrome/browser/ui/startup/default_browser_infobar_delegate.h
@@ -46,6 +46,8 @@ class DefaultBrowserInfoBarDelegate : public ConfirmInfoBarDelegate {
CANCEL_INFO_BAR = 1,
// The user did not interact with the info bar.
IGNORE_INFO_BAR = 2,
+ // The user explicitly closed the infobar.
+ DISMISS_INFO_BAR = 3,
NUM_INFO_BAR_USER_INTERACTION_TYPES
};
@@ -85,6 +87,9 @@ class DefaultBrowserInfoBarDelegate : public ConfirmInfoBarDelegate {
// Whether the info bar should be dismissed on the next navigation.
bool should_expire_;
+ // Indicates if the user interacted with the infobar.
+ bool action_taken_;
+
// Used to delay the expiration of the info-bar.
base::WeakPtrFactory<DefaultBrowserInfoBarDelegate> weak_factory_;
« no previous file with comments | « no previous file | chrome/browser/ui/startup/default_browser_infobar_delegate.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698