Skip to content

Commit

Permalink
(ungoogled-supermium) in-browser translator blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
win32ss committed Apr 29, 2024
1 parent 7000eaf commit dfa0e1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/translate/core/browser/translate_url_fetcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "components/translate/core/browser/translate_url_fetcher.h"

#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "components/translate/core/browser/translate_download_manager.h"
Expand Down Expand Up @@ -33,6 +34,8 @@ bool TranslateURLFetcher::Request(const GURL& url,
bool is_incognito) {
// This function is not supposed to be called if the previous operation is not
// finished.
if (base::CommandLine::ForCurrentProcess()->HasSwitch("ungoogled-supermium"))
return false;
if (state_ == REQUESTING) {
NOTREACHED();
return false;
Expand Down

0 comments on commit dfa0e1a

Please sign in to comment.