OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/chrome_pages.h" | 5 #include "chrome/browser/ui/chrome_pages.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/browser/download/download_shelf.h" | 10 #include "chrome/browser/download/download_shelf.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 break; | 136 break; |
137 case HELP_SOURCE_WEBUI: | 137 case HELP_SOURCE_WEBUI: |
138 url = GURL(kChromeHelpViaWebUIURL); | 138 url = GURL(kChromeHelpViaWebUIURL); |
139 break; | 139 break; |
140 default: | 140 default: |
141 NOTREACHED() << "Unhandled help source " << source; | 141 NOTREACHED() << "Unhandled help source " << source; |
142 } | 142 } |
143 ShowSingletonTab(browser, url); | 143 ShowSingletonTab(browser, url); |
144 } | 144 } |
145 | 145 |
146 void ShowSlow(Browser* browser) { | |
Lei Zhang
2013/08/09 22:42:12
nit: put this after ShowPolicy() so it's in the sa
Zachary Kuznia
2013/08/09 23:17:23
Done.
| |
147 ShowSingletonTab(browser, GURL(kChromeUISlowURL)); | |
148 } | |
149 | |
146 void ShowPolicy(Browser* browser) { | 150 void ShowPolicy(Browser* browser) { |
147 ShowSingletonTab(browser, GURL(kChromeUIPolicyURL)); | 151 ShowSingletonTab(browser, GURL(kChromeUIPolicyURL)); |
148 } | 152 } |
149 | 153 |
150 void ShowSettings(Browser* browser) { | 154 void ShowSettings(Browser* browser) { |
151 content::RecordAction(UserMetricsAction("ShowOptions")); | 155 content::RecordAction(UserMetricsAction("ShowOptions")); |
152 ShowSettingsSubPage(browser, std::string()); | 156 ShowSettingsSubPage(browser, std::string()); |
153 } | 157 } |
154 | 158 |
155 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page) { | 159 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page) { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 const std::string& service, | 236 const std::string& service, |
233 const GURL& continue_url) { | 237 const GURL& continue_url) { |
234 GURL url(GaiaUrls::GetInstance()->service_login_url()); | 238 GURL url(GaiaUrls::GetInstance()->service_login_url()); |
235 url = net::AppendQueryParameter(url, "service", service); | 239 url = net::AppendQueryParameter(url, "service", service); |
236 if (continue_url.is_valid()) | 240 if (continue_url.is_valid()) |
237 url = net::AppendQueryParameter(url, "continue", continue_url.spec()); | 241 url = net::AppendQueryParameter(url, "continue", continue_url.spec()); |
238 NavigateToSingletonTab(browser, url); | 242 NavigateToSingletonTab(browser, url); |
239 } | 243 } |
240 | 244 |
241 } // namespace chrome | 245 } // namespace chrome |
OLD | NEW |