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

Unified Diff: apps/launcher.cc

Issue 217533006: Introduce apps API target in //apps and move app.runtime API into it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dependencies (app-runtime-move) Created 6 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 | « apps/common/api/dummy.idl ('k') | apps/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/launcher.cc
diff --git a/apps/launcher.cc b/apps/launcher.cc
index b19d9a2ca4de1b4669513f90c596076db231f3fe..845b259a733a1f0dc9400903ad7cbf5759a2669b 100644
--- a/apps/launcher.cc
+++ b/apps/launcher.cc
@@ -5,6 +5,9 @@
#include "apps/launcher.h"
#include "apps/apps_client.h"
+#include "apps/browser/api/app_runtime/app_runtime_api.h"
+#include "apps/browser/file_handler_util.h"
+#include "apps/common/api/app_runtime.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
@@ -12,11 +15,9 @@
#include "base/memory/ref_counted.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/extensions/api/app_runtime/app_runtime_api.h"
#include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h"
#include "chrome/browser/extensions/api/file_system/file_system_api.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/extensions/api/app_runtime.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
@@ -44,15 +45,15 @@
#include "win8/util/win8_util.h"
#endif
-namespace app_runtime = extensions::api::app_runtime;
+namespace app_runtime = apps::api::app_runtime;
+using apps::file_handler_util::GrantedFileEntry;
using content::BrowserThread;
using extensions::app_file_handler_util::CheckWritableFiles;
using extensions::app_file_handler_util::FileHandlerForId;
using extensions::app_file_handler_util::FileHandlerCanHandleFile;
using extensions::app_file_handler_util::FirstFileHandlerForFile;
using extensions::app_file_handler_util::CreateFileEntry;
-using extensions::app_file_handler_util::GrantedFileEntry;
using extensions::app_file_handler_util::HasFileSystemWritePermission;
using extensions::EventRouter;
using extensions::Extension;
@@ -104,7 +105,7 @@ bool GetAbsolutePathFromCommandLine(const CommandLine& command_line,
// load or obtain file launch data.
void LaunchPlatformAppWithNoData(Profile* profile, const Extension* extension) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- extensions::AppEventRouter::DispatchOnLaunchedEvent(profile, extension);
+ AppEventRouter::DispatchOnLaunchedEvent(profile, extension);
}
// Class to handle launching of platform apps to open a specific path.
@@ -292,7 +293,7 @@ class PlatformAppPathLauncher
host->render_process_host()->GetID(),
file_path_,
false);
- extensions::AppEventRouter::DispatchOnLaunchedEventWithFileEntry(
+ AppEventRouter::DispatchOnLaunchedEventWithFileEntry(
profile_, extension_, handler_id_, mime_type, file_entry);
}
@@ -384,7 +385,7 @@ void RestartPlatformApp(Profile* profile, const Extension* extension) {
app_runtime::OnRestarted::kEventName);
if (listening_to_restart) {
- extensions::AppEventRouter::DispatchOnRestartedEvent(profile, extension);
+ AppEventRouter::DispatchOnRestartedEvent(profile, extension);
return;
}
@@ -405,7 +406,7 @@ void LaunchPlatformAppWithUrl(Profile* profile,
const std::string& handler_id,
const GURL& url,
const GURL& referrer_url) {
- extensions::AppEventRouter::DispatchOnLaunchedEventWithUrl(
+ AppEventRouter::DispatchOnLaunchedEventWithUrl(
profile, extension, handler_id, url, referrer_url);
}
« no previous file with comments | « apps/common/api/dummy.idl ('k') | apps/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698