| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/plugin_updater.h" | 5 #include "chrome/browser/plugin_updater.h" | 
| 6 | 6 | 
| 7 #include <set> | 7 #include <set> | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" | 
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 285 void PluginUpdater::NotifyPluginStatusChanged() { | 285 void PluginUpdater::NotifyPluginStatusChanged() { | 
| 286   if (notify_pending_) | 286   if (notify_pending_) | 
| 287     return; | 287     return; | 
| 288   notify_pending_ = true; | 288   notify_pending_ = true; | 
| 289   MessageLoop::current()->PostTask( | 289   MessageLoop::current()->PostTask( | 
| 290       FROM_HERE, | 290       FROM_HERE, | 
| 291       NewRunnableFunction(&PluginUpdater::OnNotifyPluginStatusChanged)); | 291       NewRunnableFunction(&PluginUpdater::OnNotifyPluginStatusChanged)); | 
| 292 } | 292 } | 
| 293 | 293 | 
| 294 void PluginUpdater::OnNotifyPluginStatusChanged() { | 294 void PluginUpdater::OnNotifyPluginStatusChanged() { | 
| 295   GetPluginUpdater()->notify_pending_ = false; | 295   GetInstance()->notify_pending_ = false; | 
| 296   NotificationService::current()->Notify( | 296   NotificationService::current()->Notify( | 
| 297       NotificationType::PLUGIN_ENABLE_STATUS_CHANGED, | 297       NotificationType::PLUGIN_ENABLE_STATUS_CHANGED, | 
| 298       Source<PluginUpdater>(GetPluginUpdater()), | 298       Source<PluginUpdater>(GetInstance()), | 
| 299       NotificationService::NoDetails()); | 299       NotificationService::NoDetails()); | 
| 300 } | 300 } | 
| 301 | 301 | 
| 302 /*static*/ | 302 /*static*/ | 
| 303 PluginUpdater* PluginUpdater::GetPluginUpdater() { | 303 PluginUpdater* PluginUpdater::GetInstance() { | 
| 304   return Singleton<PluginUpdater>::get(); | 304   return Singleton<PluginUpdater>::get(); | 
| 305 } | 305 } | 
| OLD | NEW | 
|---|