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

Unified Diff: components/translate/content/browser/content_translate_driver.cc

Issue 2034413003: Delete the non-static CLD data source logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to latest master Created 4 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
Index: components/translate/content/browser/content_translate_driver.cc
diff --git a/components/translate/content/browser/content_translate_driver.cc b/components/translate/content/browser/content_translate_driver.cc
index 91b9a736e1246a26d615ca3915a3651a7ba51aea..24376c16d711385043017b4f44e6a4e94396375c 100644
--- a/components/translate/content/browser/content_translate_driver.cc
+++ b/components/translate/content/browser/content_translate_driver.cc
@@ -9,8 +9,6 @@
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "components/translate/content/browser/browser_cld_data_provider.h"
-#include "components/translate/content/browser/browser_cld_data_provider_factory.h"
#include "components/translate/content/common/translate_messages.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_manager.h"
@@ -41,9 +39,6 @@ ContentTranslateDriver::ContentTranslateDriver(
navigation_controller_(nav_controller),
translate_manager_(NULL),
max_reload_check_attempts_(kMaxTranslateLoadCheckAttempts),
- cld_data_provider_(
- translate::BrowserCldDataProviderFactory::Get()->
- CreateBrowserCldDataProvider(nav_controller->GetWebContents())),
weak_pointer_factory_(this) {
DCHECK(navigation_controller_);
}
@@ -227,12 +222,6 @@ bool ContentTranslateDriver::OnMessageReceived(
IPC_MESSAGE_HANDLER(ChromeFrameHostMsg_PageTranslated, OnPageTranslated)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
- if (!handled) {
- // The CLD Data Provider may have its own embedder-specific communication,
- // such as transferring the file handle for a CLD data file to the render
- // process.
- handled = cld_data_provider_->OnMessageReceived(message);
- }
return handled;
}

Powered by Google App Engine
This is Rietveld 408576698