| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/app_runtime/app_runtime_api.h" | 5 #include "extensions/browser/api/app_runtime/app_runtime_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "extensions/browser/entry_info.h" | 15 #include "extensions/browser/entry_info.h" |
| 16 #include "extensions/browser/event_router.h" | 16 #include "extensions/browser/event_router.h" |
| 17 #include "extensions/browser/extension_prefs.h" | 17 #include "extensions/browser/extension_prefs.h" |
| 18 #include "extensions/browser/extensions_browser_client.h" | 18 #include "extensions/browser/extensions_browser_client.h" |
| 19 #include "extensions/browser/granted_file_entry.h" | 19 #include "extensions/browser/granted_file_entry.h" |
| 20 #include "extensions/common/api/app_runtime.h" | 20 #include "extensions/common/api/app_runtime.h" |
| 21 #include "extensions/common/constants.h" | 21 #include "extensions/common/constants.h" |
| 22 #include "extensions/common/feature_switch.h" | 22 #include "extensions/common/feature_switch.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 launch_data.url.reset(new std::string(url.spec())); | 224 launch_data.url.reset(new std::string(url.spec())); |
| 225 launch_data.referrer_url.reset(new std::string(referrer_url.spec())); | 225 launch_data.referrer_url.reset(new std::string(referrer_url.spec())); |
| 226 if (extensions::FeatureSwitch::trace_app_source()->IsEnabled()) { | 226 if (extensions::FeatureSwitch::trace_app_source()->IsEnabled()) { |
| 227 launch_data.source = source_enum; | 227 launch_data.source = source_enum; |
| 228 } | 228 } |
| 229 DispatchOnLaunchedEventImpl(extension->id(), source_enum, | 229 DispatchOnLaunchedEventImpl(extension->id(), source_enum, |
| 230 launch_data.ToValue(), context); | 230 launch_data.ToValue(), context); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace extensions | 233 } // namespace extensions |
| OLD | NEW |