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

Side by Side Diff: chrome/browser/extensions/extensions_service.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
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extensions/extensions_service.h" 5 #include "chrome/browser/extensions/extensions_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 } 605 }
606 } 606 }
607 607
608 void ExtensionsService::InitEventRouters() { 608 void ExtensionsService::InitEventRouters() {
609 if (event_routers_initialized_) 609 if (event_routers_initialized_)
610 return; 610 return;
611 611
612 ExtensionHistoryEventRouter::GetInstance()->ObserveProfile(profile_); 612 ExtensionHistoryEventRouter::GetInstance()->ObserveProfile(profile_);
613 ExtensionAccessibilityEventRouter::GetInstance()->ObserveProfile(profile_); 613 ExtensionAccessibilityEventRouter::GetInstance()->ObserveProfile(profile_);
614 ExtensionBrowserEventRouter::GetInstance()->Init(profile_); 614 ExtensionBrowserEventRouter::GetInstance()->Init(profile_);
615 ExtensionBookmarkEventRouter::GetSingleton()->Observe( 615 ExtensionBookmarkEventRouter::GetInstance()->Observe(
616 profile_->GetBookmarkModel()); 616 profile_->GetBookmarkModel());
617 ExtensionCookiesEventRouter::GetInstance()->Init(); 617 ExtensionCookiesEventRouter::GetInstance()->Init();
618 ExtensionManagementEventRouter::GetInstance()->Init(); 618 ExtensionManagementEventRouter::GetInstance()->Init();
619 ExtensionProcessesEventRouter::GetInstance()->ObserveProfile(profile_); 619 ExtensionProcessesEventRouter::GetInstance()->ObserveProfile(profile_);
620 ExtensionWebNavigationEventRouter::GetInstance()->Init(); 620 ExtensionWebNavigationEventRouter::GetInstance()->Init();
621 event_routers_initialized_ = true; 621 event_routers_initialized_ = true;
622 } 622 }
623 623
624 const Extension* ExtensionsService::GetExtensionById(const std::string& id, 624 const Extension* ExtensionsService::GetExtensionById(const std::string& id,
625 bool include_disabled) { 625 bool include_disabled) {
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 } 2086 }
2087 2087
2088 void ExtensionsService::SetBeingUpgraded(const Extension* extension, 2088 void ExtensionsService::SetBeingUpgraded(const Extension* extension,
2089 bool value) { 2089 bool value) {
2090 extension_runtime_data_[extension->id()].being_upgraded = value; 2090 extension_runtime_data_[extension->id()].being_upgraded = value;
2091 } 2091 }
2092 2092
2093 PropertyBag* ExtensionsService::GetPropertyBag(const Extension* extension) { 2093 PropertyBag* ExtensionsService::GetPropertyBag(const Extension* extension) {
2094 return &extension_runtime_data_[extension->id()].property_bag; 2094 return &extension_runtime_data_[extension->id()].property_bag;
2095 } 2095 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698