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

Side by Side Diff: chrome/browser/search/iframe_source.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_avatar_icon_util.cc ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/search/iframe_source.h" 5 #include "chrome/browser/search/iframe_source.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "chrome/browser/search/instant_io_context.h" 10 #include "chrome/browser/search/instant_io_context.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "content/public/browser/navigation_entry.h" 12 #include "content/public/browser/navigation_entry.h"
13 #include "content/public/browser/render_frame_host.h" 13 #include "content/public/browser/render_frame_host.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "grit/browser_resources.h"
16 #include "net/url_request/url_request.h" 15 #include "net/url_request/url_request.h"
17 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
18 #include "url/gurl.h" 17 #include "url/gurl.h"
19 18
20 IframeSource::IframeSource() { 19 IframeSource::IframeSource() {
21 } 20 }
22 21
23 IframeSource::~IframeSource() { 22 IframeSource::~IframeSource() {
24 } 23 }
25 24
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 callback.Run(NULL); 88 callback.Run(NULL);
90 return; 89 return;
91 } 90 }
92 91
93 base::StringPiece template_js = 92 base::StringPiece template_js =
94 ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); 93 ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id);
95 std::string response(template_js.as_string()); 94 std::string response(template_js.as_string());
96 ReplaceFirstSubstringAfterOffset(&response, 0, "{{ORIGIN}}", origin); 95 ReplaceFirstSubstringAfterOffset(&response, 0, "{{ORIGIN}}", origin);
97 callback.Run(base::RefCountedString::TakeString(&response)); 96 callback.Run(base::RefCountedString::TakeString(&response));
98 } 97 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_avatar_icon_util.cc ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698