Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index c1556d9e1bb6c69324779bc9d7c71a1975e8835d..d094a593eb45e10a260dd9213d72e12d4cd9a22d 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -365,6 +365,12 @@ Browser::Browser(const CreateParams& params) |
CHECK(IncognitoModePrefs::CanOpenBrowser(profile_)); |
CHECK(!profile_->IsGuestSession() || profile_->IsOffTheRecord()) |
<< "Only off the record browser may be opened in guest mode"; |
+ DCHECK(!profile_->IsSystemProfile()) |
+ << "The system profile should never have a real browser."; |
+ // TODO(mlerman): After this hits stable channel, see if there are counts |
+ // for this metric. If not, change the DCHECK above to a CHECK. |
+ if (profile_->IsSystemProfile()) |
+ content::RecordAction(base::UserMetricsAction("BrowserForSystemProfile")); |
// TODO(jeremy): Move to initializer list once flag is removed. |
if (IsFastTabUnloadEnabled()) |