| Index: chrome/browser/gtk/instant_confirm_dialog_gtk.cc
|
| diff --git a/chrome/browser/gtk/instant_confirm_dialog_gtk.cc b/chrome/browser/gtk/instant_confirm_dialog_gtk.cc
|
| index c313ceca96abb04ccf4363fdf777ffbd894af51c..ac4529a63fc225ff68b5f8b64e49f4af19253c4a 100644
|
| --- a/chrome/browser/gtk/instant_confirm_dialog_gtk.cc
|
| +++ b/chrome/browser/gtk/instant_confirm_dialog_gtk.cc
|
| @@ -10,10 +10,9 @@
|
| #include "chrome/browser/gtk/gtk_chrome_link_button.h"
|
| #include "chrome/browser/gtk/gtk_util.h"
|
| #include "chrome/browser/instant/instant_confirm_dialog.h"
|
| -#include "chrome/browser/prefs/pref_service.h"
|
| +#include "chrome/browser/instant/instant_controller.h"
|
| #include "chrome/browser/profile.h"
|
| #include "chrome/browser/show_options_url.h"
|
| -#include "chrome/common/pref_names.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "grit/generated_resources.h"
|
|
|
| @@ -66,13 +65,8 @@ InstantConfirmDialogGtk::~InstantConfirmDialogGtk() {
|
|
|
| void InstantConfirmDialogGtk::OnDialogResponse(GtkWidget* dialog,
|
| int response) {
|
| - if (response == GTK_RESPONSE_ACCEPT) {
|
| - PrefService* service = profile_->GetPrefs();
|
| - if (service) {
|
| - service->SetBoolean(prefs::kInstantEnabled, true);
|
| - service->SetBoolean(prefs::kInstantConfirmDialogShown, true);
|
| - }
|
| - }
|
| + if (response == GTK_RESPONSE_ACCEPT)
|
| + InstantController::Enable(profile_);
|
|
|
| delete this;
|
| }
|
|
|