#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/genius_app/app_id.h"
-#include "chromeos/chromeos_switches.h"
#include "extensions/browser/extension_registry.h"
#endif
HelpSource source) {
content::RecordAction(UserMetricsAction("ShowHelpTab"));
#if defined(OS_CHROMEOS) && defined(OFFICIAL_BUILD)
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(chromeos::switches::kDisableGeniusApp)) {
- const extensions::Extension* extension =
- extensions::ExtensionRegistry::Get(profile)->GetExtensionById(
- genius_app::kGeniusAppId,
- extensions::ExtensionRegistry::EVERYTHING);
- OpenApplication(AppLaunchParams(profile, extension, 0, host_desktop_type));
- return;
- }
-#endif
+ const extensions::Extension* extension =
+ extensions::ExtensionRegistry::Get(profile)->GetExtensionById(
+ genius_app::kGeniusAppId,
+ extensions::ExtensionRegistry::EVERYTHING);
+ OpenApplication(AppLaunchParams(profile, extension, 0, host_desktop_type));
+#else
GURL url;
switch (source) {
case HELP_SOURCE_KEYBOARD:
browser = displayer->browser();
}
ShowSingletonTab(browser, url);
+#endif
}
} // namespace
SigninManagerFactory::GetForProfile(original_profile);
DCHECK(manager->IsSigninAllowed());
// If we're signed in, just show settings.
- if (!manager->GetAuthenticatedUsername().empty()) {
+ if (manager->IsAuthenticated()) {
ShowSettings(browser);
} else {
// If the browser's profile is an incognito profile, make sure to use