Index: apps/apps_client.cc |
diff --git a/extensions/common/extensions_client.cc b/apps/apps_client.cc |
similarity index 52% |
copy from extensions/common/extensions_client.cc |
copy to apps/apps_client.cc |
index e7f936dfbdf1c7ee09ebd6df0cbe9fc1f14b62ec..dbdb5466771734d5cd4f2da57b4d2eefd4bce29a 100644 |
--- a/extensions/common/extensions_client.cc |
+++ b/apps/apps_client.cc |
@@ -2,31 +2,28 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "apps/apps_client.h" |
+ |
#include "base/basictypes.h" |
-#include "extensions/common/extensions_client.h" |
-namespace extensions { |
+namespace apps { |
namespace { |
-ExtensionsClient* g_client = NULL; |
- |
-void Initialize(ExtensionsClient* client) { |
- client->RegisterManifestHandlers(); |
-} |
+AppsClient* g_client = NULL; |
} // namespace |
-ExtensionsClient* ExtensionsClient::Get() { |
+AppsClient* AppsClient::Get() { |
return g_client; |
} |
-void ExtensionsClient::Set(ExtensionsClient* client) { |
+void AppsClient::Set(AppsClient* client) { |
// This can happen in unit tests, where the utility thread runs in-process. |
if (g_client) |
return; |
+ |
g_client = client; |
- Initialize(g_client); |
} |
-} // namespace extensions |
+} // namespace apps |