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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 } | 245 } |
246 | 246 |
247 void ShowHelp(Browser* browser, HelpSource source) { | 247 void ShowHelp(Browser* browser, HelpSource source) { |
248 ShowHelpImpl(browser, browser->profile(), source); | 248 ShowHelpImpl(browser, browser->profile(), source); |
249 } | 249 } |
250 | 250 |
251 void ShowHelpForProfile(Profile* profile, HelpSource source) { | 251 void ShowHelpForProfile(Profile* profile, HelpSource source) { |
252 ShowHelpImpl(NULL, profile, source); | 252 ShowHelpImpl(NULL, profile, source); |
253 } | 253 } |
254 | 254 |
| 255 void ShowBetaForum(Browser* browser) { |
| 256 ShowSingletonTab(browser, GURL(kChromeBetaForumURL)); |
| 257 } |
| 258 |
255 void ShowPolicy(Browser* browser) { | 259 void ShowPolicy(Browser* browser) { |
256 ShowSingletonTab(browser, GURL(kChromeUIPolicyURL)); | 260 ShowSingletonTab(browser, GURL(kChromeUIPolicyURL)); |
257 } | 261 } |
258 | 262 |
259 void ShowSlow(Browser* browser) { | 263 void ShowSlow(Browser* browser) { |
260 #if defined(OS_CHROMEOS) | 264 #if defined(OS_CHROMEOS) |
261 ShowSingletonTab(browser, GURL(kChromeUISlowURL)); | 265 ShowSingletonTab(browser, GURL(kChromeUISlowURL)); |
262 #endif | 266 #endif |
263 } | 267 } |
264 | 268 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 SigninManagerFactory::GetForProfile(original_profile); | 454 SigninManagerFactory::GetForProfile(original_profile); |
451 DCHECK(manager->IsSigninAllowed()); | 455 DCHECK(manager->IsSigninAllowed()); |
452 if (manager->IsAuthenticated()) | 456 if (manager->IsAuthenticated()) |
453 ShowSettings(browser); | 457 ShowSettings(browser); |
454 else | 458 else |
455 ShowBrowserSignin(browser, access_point); | 459 ShowBrowserSignin(browser, access_point); |
456 } | 460 } |
457 #endif | 461 #endif |
458 | 462 |
459 } // namespace chrome | 463 } // namespace chrome |
OLD | NEW |