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

Side by Side Diff: chrome/browser/ui/chrome_pages.cc

Issue 2882013002: Add experiment for having a "Beta forum" link in the help menu. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/chrome_pages.h ('k') | chrome/browser/ui/toolbar/app_menu_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/chrome_pages.h ('k') | chrome/browser/ui/toolbar/app_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698