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

Unified Diff: components/translate/content/renderer/renderer_cld_data_provider.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/renderer/renderer_cld_data_provider.cc
diff --git a/components/translate/content/renderer/renderer_cld_data_provider.cc b/components/translate/content/renderer/renderer_cld_data_provider.cc
deleted file mode 100644
index 704a093e949aedf89c04237fc4a0d0dcf93217fc..0000000000000000000000000000000000000000
--- a/components/translate/content/renderer/renderer_cld_data_provider.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// NOT DEAD CODE!
-// This code isn't dead, even if it isn't currently being used. Please refer to:
-// https://www.chromium.org/developers/how-tos/compact-language-detector-cld-data-source-configuration
-
-#include "components/translate/content/renderer/renderer_cld_data_provider.h"
-
-namespace translate {
-
-RendererCldDataProvider::RendererCldDataProvider() {
- // Nothing
-}
-
-bool RendererCldDataProvider::IsCldDataAvailable() {
- return true;
-}
-
-bool RendererCldDataProvider::OnMessageReceived(const IPC::Message& message) {
- return false; // Message not handled
-}
-
-void RendererCldDataProvider::SetCldAvailableCallback
-(base::Callback<void(void)> callback) {
- callback.Run();
-}
-
-} // namespace translate

Powered by Google App Engine
This is Rietveld 408576698