| 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..d51cbf2f7e9861fe95394c74c44efc7d4dfc7899 100644
|
| --- a/chrome/browser/gtk/instant_confirm_dialog_gtk.cc
|
| +++ b/chrome/browser/gtk/instant_confirm_dialog_gtk.cc
|
| @@ -10,10 +10,8 @@
|
| #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/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 +64,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)
|
| + browser::EnableInstant(profile_);
|
|
|
| delete this;
|
| }
|
|
|