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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 13671005: Re-apply 192420: Move login switches to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index 86e5ce1ec03a57bc68447bdb0c9863a883441360..455f190147936336b3168573b29933dc042efdff 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -60,6 +60,10 @@
#include "ui/webui/jstemplate_builder.h"
#include "ui/webui/web_ui_util.h"
+#if defined(OS_CHROMEOS)
+#include "chromeos/chromeos_switches.h"
+#endif
+
#if defined(OS_MACOSX)
#include "chrome/browser/platform_util.h"
#endif
@@ -279,7 +283,8 @@ void NTPResourceCache::CreateNewTabIncognitoHTML() {
const char* new_tab_link = kLearnMoreIncognitoUrl;
// TODO(altimofeev): consider implementation without 'if def' usage.
#if defined(OS_CHROMEOS)
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession)) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kGuestSession)) {
new_tab_message_ids = IDS_NEW_TAB_GUEST_SESSION_MESSAGE;
new_tab_html_idr = IDR_GUEST_SESSION_TAB_HTML;
new_tab_link = kLearnMoreGuestSessionUrl;

Powered by Google App Engine
This is Rietveld 408576698