Skip to content

Commit

Permalink
Uplift of #18736 (squashed) to release
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Jun 2, 2023
1 parent ccc3689 commit c81bf7a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.chromium.base.ThreadUtils;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.search_engines.TemplateUrlServiceFactory;
import org.chromium.content_public.browser.BrowserStartupController;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -74,7 +75,8 @@ protected static String getWebSearchUrl(Intent intent) {
}

String query = IntentUtils.safeGetStringExtra(intent, SearchManager.QUERY);
if (query == null || TextUtils.isEmpty(query)) {
if (TextUtils.isEmpty(query)
|| !BrowserStartupController.getInstance().isFullBrowserStarted()) {
return null;
}

Expand Down

0 comments on commit c81bf7a

Please sign in to comment.