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

Unified Diff: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc

Issue 2964163002: Revert of Fix for URL opening code (Closed)
Patch Set: Created 3 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/metrics/chrome_browser_main_extra_parts_metrics.cc
diff --git a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
index 28882ee9d22029724398fcbc3e55880e24da2c04..99e8752bb20b00b2c654c7d017bf5d085d95af8f 100644
--- a/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
+++ b/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc
@@ -21,9 +21,6 @@
#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/mac/bluetooth_utility.h"
#include "chrome/browser/shell_integration.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_list.h"
-#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "components/flags_ui/pref_service_flags_storage.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
@@ -513,17 +510,7 @@
is_screen_observer_ = true;
#if !defined(OS_ANDROID)
- const BrowserList* browser_list = BrowserList::GetInstance();
-
- auto first_browser = browser_list->begin();
- if (first_browser != browser_list->end()) {
- TabStripModel* tab_strip = (*first_browser)->tab_strip_model();
- DCHECK(tab_strip);
- // In case this code becomes reachable with empty tab strip,
- // startup_metric_utils::SetNonBrowserUIDisplayed() should be used.
- DCHECK(!tab_strip->empty());
- metrics::BeginFirstWebContentsProfiling();
- }
+ metrics::BeginFirstWebContentsProfiling();
metrics::TabUsageRecorder::InitializeIfNeeded();
#endif // !defined(OS_ANDROID)
}
« no previous file with comments | « chrome/browser/lifetime/browser_close_manager_browsertest.cc ('k') | chrome/browser/sessions/session_restore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698