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> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
11 #include "base/values.h" | 13 #include "base/values.h" |
12 #include "extensions/browser/event_router.h" | 14 #include "extensions/browser/event_router.h" |
13 #include "extensions/browser/extension_prefs.h" | 15 #include "extensions/browser/extension_prefs.h" |
14 #include "extensions/browser/extensions_browser_client.h" | 16 #include "extensions/browser/extensions_browser_client.h" |
15 #include "extensions/browser/granted_file_entry.h" | 17 #include "extensions/browser/granted_file_entry.h" |
16 #include "extensions/common/api/app_runtime.h" | 18 #include "extensions/common/api/app_runtime.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 launch_data.url.reset(new std::string(url.spec())); | 205 launch_data.url.reset(new std::string(url.spec())); |
204 launch_data.referrer_url.reset(new std::string(referrer_url.spec())); | 206 launch_data.referrer_url.reset(new std::string(referrer_url.spec())); |
205 if (extensions::FeatureSwitch::trace_app_source()->IsEnabled()) { | 207 if (extensions::FeatureSwitch::trace_app_source()->IsEnabled()) { |
206 launch_data.source = source_enum; | 208 launch_data.source = source_enum; |
207 } | 209 } |
208 DispatchOnLaunchedEventImpl(extension->id(), source_enum, | 210 DispatchOnLaunchedEventImpl(extension->id(), source_enum, |
209 launch_data.ToValue(), context); | 211 launch_data.ToValue(), context); |
210 } | 212 } |
211 | 213 |
212 } // namespace extensions | 214 } // namespace extensions |
OLD | NEW |