Index: chrome/browser/app_controller_mac.mm |
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm |
index 9979e7055496cabbbe79807a64fbe15d35956f40..b2fdb450d4bacb8e3a3ff302889dba3e40814f7e 100644 |
--- a/chrome/browser/app_controller_mac.mm |
+++ b/chrome/browser/app_controller_mac.mm |
@@ -716,7 +716,7 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer { |
[self openUrls:urls]; |
if (startupIndex != TabStripModel::kNoTab && |
- startupContent->GetVisibleURL() == GURL(chrome::kChromeUINewTabURL)) { |
+ startupContent->GetVisibleURL().spec() == chrome::kChromeUINewTabURL) { |
brettw
2016/10/14 18:01:24
Is the visible URL always guaranteed to be valid?
Charlie Harrison
2016/10/14 18:13:55
You're right, it can be invalid (in a whole bunch
|
browser->tab_strip_model()->CloseWebContentsAt(startupIndex, |
TabStripModel::CLOSE_NONE); |
} |