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

Unified Diff: chrome/browser/ui/views/instant_confirm_view.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/ui/views/infobars/infobars.cc ('k') | chrome/browser/ui/views/options/general_page_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/instant_confirm_view.cc
diff --git a/chrome/browser/ui/views/instant_confirm_view.cc b/chrome/browser/ui/views/instant_confirm_view.cc
index 4a714b2fe15f20b388cea909496592a8e0a29d72..f68647b393d168d8cfacb1071e8b94775071a1a0 100644
--- a/chrome/browser/ui/views/instant_confirm_view.cc
+++ b/chrome/browser/ui/views/instant_confirm_view.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/instant/instant_confirm_dialog.h"
+#include "chrome/browser/instant/instant_controller.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profile.h"
#include "chrome/common/pref_names.h"
@@ -48,11 +49,7 @@ bool InstantConfirmView::Accept(bool window_closing) {
}
bool InstantConfirmView::Accept() {
- PrefService* prefs = profile_->GetPrefs();
- if (prefs) {
- prefs->SetBoolean(prefs::kInstantEnabled, true);
- prefs->SetBoolean(prefs::kInstantConfirmDialogShown, true);
- }
+ InstantController::Enable(profile_);
return true;
}
« no previous file with comments | « chrome/browser/ui/views/infobars/infobars.cc ('k') | chrome/browser/ui/views/options/general_page_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698