| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extension_omnibox_api.h" | 5 #include "chrome/browser/extensions/extension_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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram, | 284 UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram, |
| 285 extension_misc::APP_LAUNCH_OMNIBOX_APP, | 285 extension_misc::APP_LAUNCH_OMNIBOX_APP, |
| 286 extension_misc::APP_LAUNCH_BUCKET_BOUNDARY); | 286 extension_misc::APP_LAUNCH_BUCKET_BOUNDARY); |
| 287 | 287 |
| 288 // Look at the preferences to find the right launch container. If no | 288 // Look at the preferences to find the right launch container. If no |
| 289 // preference is set, launch as a regular tab. | 289 // preference is set, launch as a regular tab. |
| 290 extension_misc::LaunchContainer launch_container = | 290 extension_misc::LaunchContainer launch_container = |
| 291 service->extension_prefs()->GetLaunchContainer( | 291 service->extension_prefs()->GetLaunchContainer( |
| 292 extension, ExtensionPrefs::LAUNCH_REGULAR); | 292 extension, ExtensionPrefs::LAUNCH_REGULAR); |
| 293 | 293 |
| 294 Browser::OpenApplication(profile, extension, launch_container, disposition); | 294 Browser::OpenApplication(profile, extension, launch_container, GURL(), |
| 295 disposition); |
| 295 } | 296 } |
| OLD | NEW |