Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/browser/performance_monitor/performance_monitor.cc

Issue 10683003: Moved CrxInstaller and CrxInstallerError into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/threading/worker_pool.h" 9 #include "base/threading/worker_pool.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 extension->id(), 177 extension->id(),
178 extension->name(), 178 extension->name(),
179 extension->url().spec(), 179 extension->url().spec(),
180 extension->location(), 180 extension->location(),
181 extension->VersionString(), 181 extension->VersionString(),
182 extension->description(), 182 extension->description(),
183 info->reason)); 183 info->reason));
184 break; 184 break;
185 } 185 }
186 case chrome::NOTIFICATION_CRX_INSTALLER_DONE: { 186 case chrome::NOTIFICATION_CRX_INSTALLER_DONE: {
187 const CrxInstaller* installer = 187 const extensions::CrxInstaller* installer =
188 content::Source<CrxInstaller>(source).ptr(); 188 content::Source<extensions::CrxInstaller>(source).ptr();
189 189
190 // Check if the reason for the install was due to an extension update. 190 // Check if the reason for the install was due to an extension update.
191 if (installer->install_cause() != extension_misc::INSTALL_CAUSE_UPDATE) 191 if (installer->install_cause() != extension_misc::INSTALL_CAUSE_UPDATE)
192 break; 192 break;
193 193
194 const Extension* extension = content::Details<Extension>(details).ptr(); 194 const Extension* extension = content::Details<Extension>(details).ptr();
195 AddEvent(util::CreateExtensionUpdateEvent(base::Time::Now(), 195 AddEvent(util::CreateExtensionUpdateEvent(base::Time::Now(),
196 extension->id(), 196 extension->id(),
197 extension->name(), 197 extension->name(),
198 extension->url().spec(), 198 extension->url().spec(),
199 extension->location(), 199 extension->location(),
200 extension->VersionString(), 200 extension->VersionString(),
201 extension->description())); 201 extension->description()));
202 break; 202 break;
203 } 203 }
204 default: { 204 default: {
205 NOTREACHED(); 205 NOTREACHED();
206 break; 206 break;
207 } 207 }
208 } 208 }
209 } 209 }
210 210
211 } // namespace performance_monitor 211 } // namespace performance_monitor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698