Index: chrome/browser/dom_ui/new_tab_ui.cc |
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc |
index 8bcb449f70a8b89256e84742c83d8dd709439c1c..6d2bddeebb7869bbc07bb45d237221fe542217aa 100644 |
--- a/chrome/browser/dom_ui/new_tab_ui.cc |
+++ b/chrome/browser/dom_ui/new_tab_ui.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -465,9 +465,8 @@ NewTabUI::NewTabUI(TabContents* contents) |
AddMessageHandler((new MetricsHandler())->Attach(this)); |
if (WebResourcesEnabled()) |
AddMessageHandler((new TipsHandler())->Attach(this)); |
- if (ProfileSyncService::IsSyncEnabled()) { |
+ if (GetProfile()->IsSyncAccessible()) |
AddMessageHandler((new NewTabPageSyncHandler())->Attach(this)); |
- } |
if (Extension::AppsAreEnabled()) { |
ExtensionsService* service = GetProfile()->GetExtensionsService(); |
// We might not have an ExtensionsService (on ChromeOS when not logged in |