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

Unified Diff: chrome/browser/custom_home_pages_table_model.cc

Issue 9663044: Don't add devtools to list of startup pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exclude chrome://chrome/settings and chrome://settings, but not extensions pages Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/custom_home_pages_table_model.cc
diff --git a/chrome/browser/custom_home_pages_table_model.cc b/chrome/browser/custom_home_pages_table_model.cc
index 4cd0a2f2ca615ae7abc570fd0dd402d6fbd19b57..7419b6c2dae574daaf1d6b522b5945153f673b1d 100644
--- a/chrome/browser/custom_home_pages_table_model.cc
+++ b/chrome/browser/custom_home_pages_table_model.cc
@@ -158,8 +158,9 @@ void CustomHomePagesTableModel::SetToCurrentlyOpenPages() {
// and replaced by options2
if (!url.is_empty() &&
!(url.SchemeIs(chrome::kChromeUIScheme) &&
- (url.host() == chrome::kChromeUISettingsHost ||
- url.host() == chrome::kChromeUIUberHost))) {
+ url.host() == chrome::kChromeUISettingsHost) &&
+ url.spec().find("chrome://chrome/settings") != 0 &&
Evan Stade 2012/03/10 03:45:03 should use constant... how about checking path sta
+ !url.SchemeIs(chrome::kChromeDevToolsScheme)) {
Add(add_index++, url);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698