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/performance_monitor/performance_monitor.h" | 5 #include "chrome/browser/performance_monitor/performance_monitor.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/threading/worker_pool.h" | 10 #include "base/threading/worker_pool.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 extension->id(), | 198 extension->id(), |
199 extension->name(), | 199 extension->name(), |
200 extension->url().spec(), | 200 extension->url().spec(), |
201 extension->location(), | 201 extension->location(), |
202 extension->VersionString(), | 202 extension->VersionString(), |
203 extension->description(), | 203 extension->description(), |
204 info->reason)); | 204 info->reason)); |
205 break; | 205 break; |
206 } | 206 } |
207 case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { | 207 case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { |
208 const CrxInstaller* installer = | 208 const extensions::CrxInstaller* installer = |
209 content::Source<CrxInstaller>(source).ptr(); | 209 content::Source<extensions::CrxInstaller>(source).ptr(); |
210 | 210 |
211 // Check if the reason for the install was due to an extension update. | 211 // Check if the reason for the install was due to an extension update. |
212 if (installer->install_cause() != extension_misc::INSTALL_CAUSE_UPDATE) | 212 if (installer->install_cause() != extension_misc::INSTALL_CAUSE_UPDATE) |
213 break; | 213 break; |
214 | 214 |
215 const Extension* extension = content::Details<Extension>(details).ptr(); | 215 const Extension* extension = content::Details<Extension>(details).ptr(); |
216 AddEvent(util::CreateExtensionUpdateEvent(base::Time::Now(), | 216 AddEvent(util::CreateExtensionUpdateEvent(base::Time::Now(), |
217 extension->id(), | 217 extension->id(), |
218 extension->name(), | 218 extension->name(), |
219 extension->url().spec(), | 219 extension->url().spec(), |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 break; | 260 break; |
261 } | 261 } |
262 default: { | 262 default: { |
263 NOTREACHED(); | 263 NOTREACHED(); |
264 break; | 264 break; |
265 } | 265 } |
266 } | 266 } |
267 } | 267 } |
268 | 268 |
269 } // namespace performance_monitor | 269 } // namespace performance_monitor |
OLD | NEW |