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

Unified Diff: components/wifi_sync/wifi_credential_syncable_service_factory.h

Issue 2463463004: [Sync] Rename wifi_sync to sync_wifi. (Closed)
Patch Set: Created 4 years, 2 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: components/wifi_sync/wifi_credential_syncable_service_factory.h
diff --git a/components/wifi_sync/wifi_credential_syncable_service_factory.h b/components/wifi_sync/wifi_credential_syncable_service_factory.h
deleted file mode 100644
index 38367b24592f5549602c77cbaa80e771c325d2f8..0000000000000000000000000000000000000000
--- a/components/wifi_sync/wifi_credential_syncable_service_factory.h
+++ /dev/null
@@ -1,77 +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_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_
-#define COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/singleton.h"
-#include "build/build_config.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-
-namespace content {
-class BrowserContext;
-}
-
-namespace wifi_sync {
-
-class WifiConfigDelegate;
-class WifiCredentialSyncableService;
-
-// Singleton that owns all WifiCredentialSyncableServices and
-// associates them with Profiles. Listens for the Profile's
-// destruction notification and cleans up the associated
-// WifiCredentialSyncableServices.
-class WifiCredentialSyncableServiceFactory
- : public BrowserContextKeyedServiceFactory {
- public:
- // Returns the SyncableService for |browser_context|, creating the
- // SyncableService if one does not already exist.
- static WifiCredentialSyncableService* GetForBrowserContext(
- content::BrowserContext* browser_context);
-
- // Returns the singleton instance.
- static WifiCredentialSyncableServiceFactory* GetInstance();
-
-#if defined(OS_CHROMEOS)
- void set_ignore_login_state_for_test(bool new_value) {
- ignore_login_state_for_test_ = new_value;
- }
-#endif
-
- private:
- friend struct base::DefaultSingletonTraits<
- WifiCredentialSyncableServiceFactory>;
-
- WifiCredentialSyncableServiceFactory();
- ~WifiCredentialSyncableServiceFactory() override;
-
- // BrowserContextKeyedServiceFactory implementation.
- KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* context) const override;
-
-#if defined(OS_CHROMEOS)
- // Returns a scoped pointer to a WifiConfigDelegate, which can be
- // used to configure the ChromeOS Wi-Fi settings associated with
- // |context|.
- std::unique_ptr<WifiConfigDelegate> BuildWifiConfigDelegateChromeOs(
- content::BrowserContext* context) const;
-#endif
-
-#if defined(OS_CHROMEOS)
- // Whether or not we should use LoginState to associate a new
- // SyncableService with a Shill profile. Should be set to true in
- // sync integration tests, where it is not possible to control
- // LoginState at the time SyncableServices are constructed.
- bool ignore_login_state_for_test_ = false;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(WifiCredentialSyncableServiceFactory);
-};
-
-} // namespace wifi_sync
-
-#endif // COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698