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

Unified Diff: components/suggestions/suggestions_utils.h

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
« no previous file with comments | « components/suggestions/suggestions_service_unittest.cc ('k') | components/suggestions/suggestions_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/suggestions_utils.h
diff --git a/components/suggestions/suggestions_utils.h b/components/suggestions/suggestions_utils.h
deleted file mode 100644
index f703f18f5c2ad50a35c4f62cff655aa070c57ab7..0000000000000000000000000000000000000000
--- a/components/suggestions/suggestions_utils.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef COMPONENTS_SUGGESTIONS_SUGGESTIONS_UTILS_H_
-#define COMPONENTS_SUGGESTIONS_SUGGESTIONS_UTILS_H_
-
-namespace suggestions {
-
-// Establishes the different sync states that users of SuggestionsService can
-// specify. There are three different concepts in the sync service: initialized,
-// sync enabled and history sync enabled.
-enum SyncState {
- // State: Sync service is not initialized, yet not disabled. History sync
- // state is unknown (since not initialized).
- // Behavior: Does not issue a server request, but serves from cache if
- // available.
- NOT_INITIALIZED_ENABLED,
-
- // State: Sync service is initialized, sync is enabled and history sync is
- // enabled.
- // Behavior: Update suggestions from the server. Serve from cache on timeout.
- INITIALIZED_ENABLED_HISTORY,
-
- // State: Sync service is disabled or history sync is disabled.
- // Behavior: Do not issue a server request. Clear the cache. Serve empty
- // suggestions.
- SYNC_OR_HISTORY_SYNC_DISABLED,
-};
-
-// Users of SuggestionsService should always use this function to get SyncState.
-// Note: In chrome/browser/search/suggestions/suggestions_utils.h, there is
-// another variant of this function that takes a Profile* instead.
-SyncState GetSyncState(bool sync_enabled,
- bool sync_initialized,
- bool history_sync_enabled);
-
-} // namespace suggestions
-
-#endif // COMPONENTS_SUGGESTIONS_SUGGESTIONS_UTILS_H_
« no previous file with comments | « components/suggestions/suggestions_service_unittest.cc ('k') | components/suggestions/suggestions_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698