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

Unified Diff: components/translate/core/browser/translate_manager.h

Issue 291503008: Remove most of chrome/ and content/ usage from TranslateInfoBarDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 7 months 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: components/translate/core/browser/translate_manager.h
diff --git a/components/translate/core/browser/translate_manager.h b/components/translate/core/browser/translate_manager.h
index d1f09fcc96d6a76a61ba54d30b92d2223d452039..c29b167775b106075f813a3bf79558a8dd437e2a 100644
--- a/components/translate/core/browser/translate_manager.h
+++ b/components/translate/core/browser/translate_manager.h
@@ -35,6 +35,12 @@ class TranslateManager {
const std::string& accept_language_pref_name);
virtual ~TranslateManager();
+ // Returns a weak pointer to this instance.
+ base::WeakPtr<TranslateManager> GetWeakPtr();
+
+ // Cannot return NULL.
+ TranslateClient* translate_client() { return translate_client_; }
+
// Returns the language to translate to. The language returned is the
// first language found in the following list that is supported by the
// translation service:

Powered by Google App Engine
This is Rietveld 408576698