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

Unified Diff: chrome/browser/ui/webui/instant_ui.cc

Issue 10836031: Remove Instant v1 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update history, title, favicon Created 8 years, 4 months 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/webui/instant_ui.h ('k') | chrome/browser/ui/webui/options2/browser_options_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/instant_ui.cc
diff --git a/chrome/browser/ui/webui/instant_ui.cc b/chrome/browser/ui/webui/instant_ui.cc
index f7c2635cd193b8611f99f12d54d37ed46c260caf..e066dc591e91950a6bf18439082ffc4189224acf 100644
--- a/chrome/browser/ui/webui/instant_ui.cc
+++ b/chrome/browser/ui/webui/instant_ui.cc
@@ -5,14 +5,11 @@
#include "chrome/browser/ui/webui/instant_ui.h"
#include "base/bind.h"
-#include "base/values.h"
-#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/web_ui.h"
-#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "grit/browser_resources.h"
@@ -50,7 +47,7 @@ class InstantUIMessageHandler
void GetPreferenceValue(const base::ListValue* args);
void SetPreferenceValue(const base::ListValue* args);
- // Slows down instant animations by a time factor.
+ // Slows down Instant animations by a time factor.
static int slow_animation_scale_factor_;
DISALLOW_COPY_AND_ASSIGN(InstantUIMessageHandler);
@@ -115,8 +112,7 @@ void InstantUIMessageHandler::SetPreferenceValue(const base::ListValue* args) {
////////////////////////////////////////////////////////////////////////////////
// InstantUI
-InstantUI::InstantUI(content::WebUI* web_ui)
- : WebUIController(web_ui) {
+InstantUI::InstantUI(content::WebUI* web_ui) : WebUIController(web_ui) {
web_ui->AddMessageHandler(new InstantUIMessageHandler());
// Set up the chrome://instant/ source.
« no previous file with comments | « chrome/browser/ui/webui/instant_ui.h ('k') | chrome/browser/ui/webui/options2/browser_options_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698