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

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

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/plugin_updater.h ('k') | chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698