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

Unified Diff: chrome/browser/cross_site_request_manager.cc

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cross_site_request_manager.cc
diff --git a/chrome/browser/cross_site_request_manager.cc b/chrome/browser/cross_site_request_manager.cc
index 4104398f1996c7d81b8e518cd7ae3983884dc9da..3d60bbe96d576387ce54a70bcfef2c1b829272d9 100644
--- a/chrome/browser/cross_site_request_manager.cc
+++ b/chrome/browser/cross_site_request_manager.cc
@@ -29,3 +29,8 @@ void CrossSiteRequestManager::SetHasPendingCrossSiteRequest(int renderer_id,
CrossSiteRequestManager::CrossSiteRequestManager() {}
CrossSiteRequestManager::~CrossSiteRequestManager() {}
+
+// static
+CrossSiteRequestManager* CrossSiteRequestManager::GetInstance() {
+ return Singleton<CrossSiteRequestManager>::get();
+}

Powered by Google App Engine
This is Rietveld 408576698