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

Unified Diff: chrome/browser/gtk/instant_confirm_dialog_gtk.cc

Issue 5023001: Handful of related instant changes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux build Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698