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

Unified Diff: chrome/browser/search/suggestions/suggestions_utils.cc

Issue 1770843002: SuggestionsService: implement SyncServiceObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS Created 4 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/search/suggestions/suggestions_utils.cc
diff --git a/chrome/browser/search/suggestions/suggestions_utils.cc b/chrome/browser/search/suggestions/suggestions_utils.cc
deleted file mode 100644
index b012e39d08a564912d7c4fc8a27b2e95e3d6c9b8..0000000000000000000000000000000000000000
--- a/chrome/browser/search/suggestions/suggestions_utils.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2016 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.
-
-#include "chrome/browser/search/suggestions/suggestions_utils.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/sync/profile_sync_service_factory.h"
-#include "components/browser_sync/browser/profile_sync_service.h"
-
-namespace suggestions {
-
-SyncState GetSyncState(Profile* profile) {
- ProfileSyncService* sync =
- ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile);
- if (!sync)
- return SyncState::SYNC_OR_HISTORY_SYNC_DISABLED;
- return GetSyncState(
- sync->CanSyncStart(), sync->IsSyncActive() && sync->ConfigurationDone(),
- sync->GetActiveDataTypes().Has(syncer::HISTORY_DELETE_DIRECTIVES));
-}
-
-} // namespace suggestions

Powered by Google App Engine
This is Rietveld 408576698