| 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/extensions/api/omnibox/omnibox_api.h" | 5 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 AppLauncherHandler::RecordAppLaunchType( | 314 AppLauncherHandler::RecordAppLaunchType( |
| 315 extension_misc::APP_LAUNCH_OMNIBOX_APP); | 315 extension_misc::APP_LAUNCH_OMNIBOX_APP); |
| 316 | 316 |
| 317 // Look at the preferences to find the right launch container. If no | 317 // Look at the preferences to find the right launch container. If no |
| 318 // preference is set, launch as a regular tab. | 318 // preference is set, launch as a regular tab. |
| 319 extension_misc::LaunchContainer launch_container = | 319 extension_misc::LaunchContainer launch_container = |
| 320 service->extension_prefs()->GetLaunchContainer( | 320 service->extension_prefs()->GetLaunchContainer( |
| 321 extension, ExtensionPrefs::LAUNCH_REGULAR); | 321 extension, ExtensionPrefs::LAUNCH_REGULAR); |
| 322 | 322 |
| 323 application_launch::OpenApplication(profile, extension, launch_container, | 323 application_launch::OpenApplication(profile, extension, launch_container, |
| 324 GURL(), disposition); | 324 GURL(), disposition, NULL); |
| 325 } | 325 } |
| 326 | 326 |
| 327 } // namespace extensions | 327 } // namespace extensions |
| OLD | NEW |