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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 2409423005: Compare GURLs to kUrlConstants with .spec() and string equality (Closed)
Patch Set: rebase on dependent patch Created 4 years, 2 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/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 01449b0b36bf24fb4ea45424fdd236554c9acbb2..a0a29dda97cf02aaa6fbc3e722cc035ab900e4fe 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -703,7 +703,7 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer {
[self openUrls:urls];
if (startupIndex != TabStripModel::kNoTab &&
- startupContent->GetVisibleURL() == GURL(chrome::kChromeUINewTabURL)) {
+ startupContent->GetVisibleURL() == chrome::kChromeUINewTabURL) {
browser->tab_strip_model()->CloseWebContentsAt(startupIndex,
TabStripModel::CLOSE_NONE);
}
« no previous file with comments | « chrome/browser/android/data_usage/data_use_ui_tab_model.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698