OLD | NEW |
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/ui/views/ash/extension_utils.h" | 5 #include "chrome/browser/ui/ash/extension_utils.h" |
6 | 6 |
7 #include "chrome/browser/event_disposition.h" | 7 #include "chrome/browser/event_disposition.h" |
8 #include "chrome/browser/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/extensions/application_launch.h" | 11 #include "chrome/browser/ui/extensions/application_launch.h" |
12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 | 14 |
15 namespace extension_utils { | 15 namespace extension_utils { |
(...skipping 21 matching lines...) Expand all Loading... |
37 profile->GetExtensionService()->extension_prefs()->GetLaunchContainer( | 37 profile->GetExtensionService()->extension_prefs()->GetLaunchContainer( |
38 extension, extensions::ExtensionPrefs::LAUNCH_DEFAULT); | 38 extension, extensions::ExtensionPrefs::LAUNCH_DEFAULT); |
39 disposition = NEW_FOREGROUND_TAB; | 39 disposition = NEW_FOREGROUND_TAB; |
40 } | 40 } |
41 | 41 |
42 application_launch::OpenApplication(application_launch::LaunchParams( | 42 application_launch::OpenApplication(application_launch::LaunchParams( |
43 profile, extension, container, disposition)); | 43 profile, extension, container, disposition)); |
44 } | 44 } |
45 | 45 |
46 } // namespace extension_utils | 46 } // namespace extension_utils |
OLD | NEW |