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

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

Issue 2897573002: remove offline check (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b5b93fea5ad69c65f146c7dfef67b1dd8cc45dca..41ae73f6e36a761f96664733875f4446565f51d7 100644
--- a/components/translate/content/browser/content_translate_driver.cc
+++ b/components/translate/content/browser/content_translate_driver.cc
@@ -20,7 +20,6 @@
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/referrer.h"
-#include "net/base/network_change_notifier.h"
#include "net/http/http_status_code.h"
#include "url/gurl.h"
@@ -260,10 +259,6 @@ void ContentTranslateDriver::OnPageTranslated(
if (cancelled)
return;
- if (net::NetworkChangeNotifier::IsOffline()) {
- error_type = TranslateErrors::NETWORK;
- }
-
translate_manager_->PageTranslated(
original_lang, translated_lang, error_type);
for (auto& observer : observer_list_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698