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

Unified Diff: chrome/browser/translate/chrome_translate_client.cc

Issue 354093004: Fix crash when using non-static CLD and update translate.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto master Created 6 years, 6 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
« no previous file with comments | « no previous file | components/translate.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/chrome_translate_client.cc
diff --git a/chrome/browser/translate/chrome_translate_client.cc b/chrome/browser/translate/chrome_translate_client.cc
index ddaf709c49eba1b9cfeefeefaf1274d6ef5af7b9..7d3459c02fe388db68202f138fa8176ad123d0e5 100644
--- a/chrome/browser/translate/chrome_translate_client.cc
+++ b/chrome/browser/translate/chrome_translate_client.cc
@@ -86,7 +86,7 @@ ChromeTranslateClient::ChromeTranslateClient(content::WebContents* web_contents)
translate_driver_(&web_contents->GetController()),
translate_manager_(new TranslateManager(this, prefs::kAcceptLanguages)),
cld_data_provider_(translate::CreateBrowserCldDataProviderFor(
- web_contents->GetRenderViewHost())),
+ web_contents)),
weak_pointer_factory_(this) {
#if defined(CLD_DATA_FROM_STANDALONE)
if (!g_cld_file_path_initialized_)
« no previous file with comments | « no previous file | components/translate.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698