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

Unified Diff: chrome/browser/sync/personalization.cc

Issue 165257: Build browser/sync files by default using a stubbed-out syncapi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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/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) {

Powered by Google App Engine
This is Rietveld 408576698