| 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 "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 5 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/error_console/error_console.h" | 10 #include "chrome/browser/extensions/error_console/error_console.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } else { | 215 } else { |
| 216 // The field trial is not active for this version. | 216 // The field trial is not active for this version. |
| 217 ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial( | 217 ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial( |
| 218 "SiteIsolationExtensionsActive", "Default"); | 218 "SiteIsolationExtensionsActive", "Default"); |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 if (rappor::RapporService* rappor = g_browser_process->rappor_service()) { | 222 if (rappor::RapporService* rappor = g_browser_process->rappor_service()) { |
| 223 const std::string& extension_id = | 223 const std::string& extension_id = |
| 224 parent_is_extension ? parent_url.host() : frame_url.host(); | 224 parent_is_extension ? parent_url.host() : frame_url.host(); |
| 225 rappor->RecordSample("Extensions.AffectedByIsolateExtensions", | 225 rappor->RecordSampleString("Extensions.AffectedByIsolateExtensions", |
| 226 rappor::UMA_RAPPOR_TYPE, extension_id); | 226 rappor::UMA_RAPPOR_TYPE, extension_id); |
| 227 } | 227 } |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace extensions | 231 } // namespace extensions |
| OLD | NEW |