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

Unified Diff: chrome/browser/devtools/global_confirm_info_bar.h

Issue 2354673004: Add TabStripModel as a parameter of some functions in TabStripModelObserver (Closed)
Patch Set: Last nits Created 4 years, 3 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
« no previous file with comments | « chrome/browser/devtools/devtools_auto_opener.cc ('k') | chrome/browser/devtools/global_confirm_info_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/global_confirm_info_bar.h
diff --git a/chrome/browser/devtools/global_confirm_info_bar.h b/chrome/browser/devtools/global_confirm_info_bar.h
index c7b562b45deb28da3ba690a99b8d08569e41d799..1f5c7d03159e5f52fbf6f5e062f40f9ed3a60528 100644
--- a/chrome/browser/devtools/global_confirm_info_bar.h
+++ b/chrome/browser/devtools/global_confirm_info_bar.h
@@ -36,7 +36,8 @@ class GlobalConfirmInfoBar : public TabStripModelObserver,
class DelegateProxy;
// TabStripModelObserver:
- void TabInsertedAt(content::WebContents* web_contents,
+ void TabInsertedAt(TabStripModel* tab_strip_model,
+ content::WebContents* web_contents,
int index,
bool foreground) override;
void TabChangedAt(content::WebContents* web_contents,
@@ -47,6 +48,9 @@ class GlobalConfirmInfoBar : public TabStripModelObserver,
void OnInfoBarRemoved(infobars::InfoBar* info_bar, bool animate) override;
void OnManagerShuttingDown(infobars::InfoBarManager* manager) override;
+ // Adds the info bar to the tab if it is missing.
+ void MaybeAddInfoBar(content::WebContents* web_contents);
+
std::unique_ptr<ConfirmInfoBarDelegate> delegate_;
std::map<infobars::InfoBarManager*, DelegateProxy*> proxies_;
BrowserTabStripTracker browser_tab_strip_tracker_;
« no previous file with comments | « chrome/browser/devtools/devtools_auto_opener.cc ('k') | chrome/browser/devtools/global_confirm_info_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698