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

Unified Diff: chrome/browser/search/suggestions/suggestions_source.cc

Issue 377713003: [Suggestions] Remove dependence on InstantIOContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove include Created 6 years, 5 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/search/suggestions/suggestions_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/suggestions/suggestions_source.cc
diff --git a/chrome/browser/search/suggestions/suggestions_source.cc b/chrome/browser/search/suggestions/suggestions_source.cc
index c209e936cabae21c78c1c9940a3e2654b943056c..98bd51a0e7d50cf55f030c5bf817f763f8911b38 100644
--- a/chrome/browser/search/suggestions/suggestions_source.cc
+++ b/chrome/browser/search/suggestions/suggestions_source.cc
@@ -14,12 +14,10 @@
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/search/instant_io_context.h"
#include "chrome/browser/search/suggestions/suggestions_service.h"
#include "chrome/browser/search/suggestions/suggestions_service_factory.h"
#include "chrome/common/url_constants.h"
#include "net/base/escape.h"
-#include "net/url_request/url_request.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image_skia.h"
#include "url/gurl.h"
@@ -128,13 +126,6 @@ base::MessageLoop* SuggestionsSource::MessageLoopForRequestPath(
return content::URLDataSource::MessageLoopForRequestPath(path);
}
-bool SuggestionsSource::ShouldServiceRequest(
- const net::URLRequest* request) const {
- if (request->url().SchemeIs(chrome::kChromeSearchScheme))
- return InstantIOContext::ShouldServiceRequest(request);
- return URLDataSource::ShouldServiceRequest(request);
-}
-
void SuggestionsSource::OnSuggestionsAvailable(
const content::URLDataSource::GotDataCallback& callback,
const SuggestionsProfile& suggestions_profile) {
« no previous file with comments | « chrome/browser/search/suggestions/suggestions_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698