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

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

Issue 246653003: Settings Overides -- warn user when extensions override their NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Polish Created 6 years, 8 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/browser_tabstrip.cc
diff --git a/chrome/browser/ui/browser_tabstrip.cc b/chrome/browser/ui/browser_tabstrip.cc
index 1018bbd2cb9d7df782a5bafc3b916ca6d51bd0fb..08c2f7f9cb92de63de22424f8214c23546a2ad02 100644
--- a/chrome/browser/ui/browser_tabstrip.cc
+++ b/chrome/browser/ui/browser_tabstrip.cc
@@ -16,6 +16,10 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
+#if defined(TOOLKIT_VIEWS) && defined(OS_WIN)
+#include "chrome/browser/ui/views/settings_api_bubble_helper_views.h"
+#endif // TOOLKIT_VIEWS && OS_WIN
+
namespace chrome {
void AddTabAt(Browser* browser, const GURL& url, int idx, bool foreground) {
@@ -32,6 +36,11 @@ void AddTabAt(Browser* browser, const GURL& url, int idx, bool foreground) {
CoreTabHelper* core_tab_helper =
CoreTabHelper::FromWebContents(params.target_contents);
core_tab_helper->set_new_tab_start_time(new_tab_start_time);
+
+#if defined(TOOLKIT_VIEWS) && defined(OS_WIN)
+ if (url.is_empty())
+ extensions::MaybeShowExtensionControlledNewTabPage(browser);
+#endif
}
content::WebContents* AddSelectedTabWithURL(

Powered by Google App Engine
This is Rietveld 408576698