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

Unified Diff: chrome/browser/first_run/first_run.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/first_run/first_run.cc
===================================================================
--- chrome/browser/first_run/first_run.cc (revision 145001)
+++ chrome/browser/first_run/first_run.cc (working copy)
@@ -29,6 +29,7 @@
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/global_error/global_error_service.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
@@ -513,7 +514,7 @@
return;
}
- content::WebContents* contents = browser->GetActiveWebContents();
+ content::WebContents* contents = chrome::GetActiveWebContents(browser);
if (contents && contents->GetURL().SchemeIs(chrome::kChromeUIScheme)) {
// Suppress the first run bubble if the sync promo is showing.
if (contents->GetURL().host() == chrome::kChromeUISyncPromoHost)
« no previous file with comments | « chrome/browser/external_extension_browsertest.cc ('k') | chrome/browser/geolocation/geolocation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698