diff options
Diffstat (limited to 'chrome/browser/sync/personalization.cc')
-rw-r--r-- | chrome/browser/sync/personalization.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/sync/personalization.cc b/chrome/browser/sync/personalization.cc index 8e8b6a6b..8f0fc76 100644 --- a/chrome/browser/sync/personalization.cc +++ b/chrome/browser/sync/personalization.cc @@ -79,11 +79,11 @@ static std::wstring MakeAuthErrorText(AuthErrorState state) { } } -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) { |