Index: chrome/browser/ui/views/first_run_search_engine_view.cc |
=================================================================== |
--- chrome/browser/ui/views/first_run_search_engine_view.cc (revision 84102) |
+++ chrome/browser/ui/views/first_run_search_engine_view.cc (working copy) |
@@ -12,6 +12,7 @@ |
#include "base/rand_util.h" |
#include "base/time.h" |
#include "base/utf_string_conversions.h" |
+#include "chrome/browser/first_run/first_run.h" |
#include "chrome/browser/first_run/first_run_dialog.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/search_engines/search_engine_type.h" |
@@ -57,8 +58,10 @@ |
// If the default search is managed via policy, we don't ask the user to |
// choose. |
TemplateURLModel* model = profile->GetTemplateURLModel(); |
- if (NULL == model || model->is_default_search_managed()) |
+ if (FirstRun::SearchEngineSelectorRestricted() || model == NULL || |
Avi (use Gerrit)
2011/05/04 20:13:06
!model
Miranda Callahan
2011/05/04 20:15:31
Done.
|
+ model->is_default_search_managed()) { |
return; |
+ } |
views::Window* window = views::Window::CreateChromeWindow( |
NULL, |