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

Unified Diff: extensions/browser/app_window/app_window_registry.cc

Issue 494033002: Move AppWindow to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include in chrome_shell_delegate.cc Created 6 years, 4 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 | « extensions/browser/app_window/app_window_registry.h ('k') | extensions/browser/app_window/apps_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/app_window/app_window_registry.cc
diff --git a/apps/app_window_registry.cc b/extensions/browser/app_window/app_window_registry.cc
similarity index 96%
rename from apps/app_window_registry.cc
rename to extensions/browser/app_window/app_window_registry.cc
index 0874a5ee15d5708a2b8627ea5f3b5c3c78d8f2ac..9bc69d3d21322a04bb479b780e8d31a0338963ab 100644
--- a/apps/app_window_registry.cc
+++ b/extensions/browser/app_window/app_window_registry.cc
@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "apps/app_window_registry.h"
+#include "extensions/browser/app_window/app_window_registry.h"
#include <string>
#include <vector>
-#include "apps/app_window.h"
-#include "apps/ui/apps_client.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/devtools_agent_host.h"
@@ -16,10 +14,14 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
+#include "extensions/browser/app_window/app_window.h"
+#include "extensions/browser/app_window/apps_client.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/common/extension.h"
+namespace extensions {
+
namespace {
// Create a key that identifies a AppWindow in a RenderViewHost across App
@@ -28,9 +30,9 @@ namespace {
// |id|, the chrome-extension://extension-id/page.html URL will be used. If the
// RenderViewHost is not for a AppWindow, return an empty string.
std::string GetWindowKeyForRenderViewHost(
- const apps::AppWindowRegistry* registry,
+ const AppWindowRegistry* registry,
content::RenderViewHost* render_view_host) {
- apps::AppWindow* app_window =
+ AppWindow* app_window =
registry->GetAppWindowForRenderViewHost(render_view_host);
if (!app_window)
return std::string(); // Not a AppWindow.
@@ -46,8 +48,6 @@ std::string GetWindowKeyForRenderViewHost(
} // namespace
-namespace apps {
-
void AppWindowRegistry::Observer::OnAppWindowAdded(AppWindow* app_window) {
}
@@ -346,8 +346,7 @@ bool AppWindowRegistry::Factory::ServiceIsNULLWhileTesting() const {
content::BrowserContext* AppWindowRegistry::Factory::GetBrowserContextToUse(
content::BrowserContext* context) const {
- return extensions::ExtensionsBrowserClient::Get()->GetOriginalContext(
- context);
+ return ExtensionsBrowserClient::Get()->GetOriginalContext(context);
}
-} // namespace apps
+} // namespace extensions
« no previous file with comments | « extensions/browser/app_window/app_window_registry.h ('k') | extensions/browser/app_window/apps_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698