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

Side by Side Diff: chrome/browser/extensions/platform_app_launcher.cc

Issue 15658004: Split FileAPI code for common|common_child|renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/platform_app_launcher.h" 5 #include "chrome/browser/extensions/platform_app_launcher.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/extensions/lazy_background_task_queue.h" 24 #include "chrome/browser/extensions/lazy_background_task_queue.h"
25 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h" 26 #include "chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h"
27 #include "chrome/common/extensions/extension.h" 27 #include "chrome/common/extensions/extension.h"
28 #include "chrome/common/extensions/extension_messages.h" 28 #include "chrome/common/extensions/extension_messages.h"
29 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
30 #include "content/public/browser/render_process_host.h" 30 #include "content/public/browser/render_process_host.h"
31 #include "content/public/browser/web_contents.h" 31 #include "content/public/browser/web_contents.h"
32 #include "net/base/mime_util.h" 32 #include "net/base/mime_util.h"
33 #include "net/base/net_util.h" 33 #include "net/base/net_util.h"
34 #include "webkit/fileapi/file_system_types.h" 34 #include "webkit/common/fileapi/file_system_types.h"
35 35
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 37 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
38 #include "chrome/browser/chromeos/drive/file_errors.h" 38 #include "chrome/browser/chromeos/drive/file_errors.h"
39 #include "chrome/browser/chromeos/drive/file_system_interface.h" 39 #include "chrome/browser/chromeos/drive/file_system_interface.h"
40 #include "chrome/browser/chromeos/drive/file_system_util.h" 40 #include "chrome/browser/chromeos/drive/file_system_util.h"
41 #endif 41 #endif
42 42
43 #if defined(OS_WIN) 43 #if defined(OS_WIN)
44 #include "win8/util/win8_util.h" 44 #include "win8/util/win8_util.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 bool had_windows = extension_prefs->HasWindows(extension->id()); 342 bool had_windows = extension_prefs->HasWindows(extension->id());
343 extension_prefs->SetHasWindows(extension->id(), false); 343 extension_prefs->SetHasWindows(extension->id(), false);
344 bool listening_to_launch = event_router-> 344 bool listening_to_launch = event_router->
345 ExtensionHasEventListener(extension->id(), event_names::kOnLaunched); 345 ExtensionHasEventListener(extension->id(), event_names::kOnLaunched);
346 346
347 if (listening_to_launch && had_windows) 347 if (listening_to_launch && had_windows)
348 LaunchPlatformAppWithNoData(profile, extension); 348 LaunchPlatformAppWithNoData(profile, extension);
349 } 349 }
350 350
351 } // namespace extensions 351 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698