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

Unified Diff: chrome/browser/ui/gtk/first_run_dialog.cc

Issue 6927022: Turn off the search engine selector for the Russian locale. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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: chrome/browser/ui/gtk/first_run_dialog.cc
===================================================================
--- chrome/browser/ui/gtk/first_run_dialog.cc (revision 84102)
+++ chrome/browser/ui/gtk/first_run_dialog.cc (working copy)
@@ -106,7 +106,9 @@
// Figure out which dialogs we will show.
// If the default search is managed via policy, we won't ask.
const TemplateURLModel* search_engines_model = profile->GetTemplateURLModel();
- bool show_search_engines_dialog = search_engines_model &&
+ bool show_search_engines_dialog =
+ !FirstRun::SearchEngineSelectorRestricted() &&
+ search_engines_model &&
!search_engines_model->is_default_search_managed();
#if defined(GOOGLE_CHROME_BUILD)

Powered by Google App Engine
This is Rietveld 408576698