Index: chrome/browser/sync/personalization.cc |
=================================================================== |
--- chrome/browser/sync/personalization.cc (revision 23002) |
+++ chrome/browser/sync/personalization.cc (working copy) |
@@ -79,11 +79,11 @@ |
} |
} |
-bool IsP13NDisabled(Profile* profile) { |
+bool IsSyncEnabled(Profile* profile) { |
const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kDisableP13n)) |
- return true; |
- return !profile || profile->GetProfilePersonalization() == NULL; |
+ if (!command_line->HasSwitch(switches::kEnableSync)) |
+ return false; |
+ return profile && profile->GetProfilePersonalization() != NULL; |
} |
bool NeedsDOMUI(const GURL& url) { |