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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 7178002: Open Options page on top of NTP. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add support for about:blank and tests. Created 9 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/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 7e01e615f61f920d3bdee21d24eb0b87b293ac07..d3a44ff63b5a941dd9c2d53e2b93d63b7db5ce4a 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -83,6 +83,10 @@ bool CompareURLsWithReplacements(
return url_replaced == other_replaced;
}
+} // anonymous namespace
James Hawkins 2011/06/17 17:44:57 s/anonymous namespace/namespace/ Technically it's
Greg Billock 2011/06/17 21:16:07 Done.
+
+namespace browser {
+
// Returns the index of an existing singleton tab in |params->browser| matching
// the URL specified in |params|.
int GetIndexOfSingletonTab(browser::NavigateParams* params) {
@@ -127,6 +131,10 @@ int GetIndexOfSingletonTab(browser::NavigateParams* params) {
return -1;
}
+} // namespace browser
+
+namespace {
James Hawkins 2011/06/17 17:44:57 Why do we have two unnamed namespaces?
Greg Billock 2011/06/17 21:16:07 Just so the diffs are easier to follow. I plan to
+
// Change some of the navigation parameters based on the particular URL.
// Currently this applies to chrome://settings and the bookmark manager,
// which we always want to open in a normal (not incognito) window. Guest

Powered by Google App Engine
This is Rietveld 408576698