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

Unified Diff: chrome/browser/translate/translate_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/translate/translate_manager.cc
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc
index a415749485f2182d664ca9eca880d722c780a4ef..3ab4e3d1fba1e6b219638c89c6dc567d1b32c996 100644
--- a/chrome/browser/translate/translate_manager.cc
+++ b/chrome/browser/translate/translate_manager.cc
@@ -145,6 +145,11 @@ TranslateManager::~TranslateManager() {
}
// static
+TranslateManager* TranslateManager::GetInstance() {
+ return Singleton<TranslateManager>::get();
+}
+
+// static
bool TranslateManager::IsTranslatableURL(const GURL& url) {
return !url.SchemeIs("chrome") && !url.SchemeIs("ftp");
}

Powered by Google App Engine
This is Rietveld 408576698