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

Side by Side Diff: chrome/browser/ui/tab_contents/core_tab_helper.cc

Issue 1705823002: Componentize IDS_NEW_TAB_* & IDS_SAD_TAB_* string to share on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1
Patch Set: Copy IDS_NEW_TAB_TITLE translation to components_strings_*.xtb to fix browser_tests Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/tab_contents/core_tab_helper.h" 5 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/profiler/scoped_tracker.h" 13 #include "base/profiler/scoped_tracker.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/search_engines/template_url_service_factory.h" 17 #include "chrome/browser/search_engines/template_url_service_factory.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/browser/ui/browser_command_controller.h" 19 #include "chrome/browser/ui/browser_command_controller.h"
20 #include "chrome/browser/ui/browser_finder.h" 20 #include "chrome/browser/ui/browser_finder.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 #include "chrome/common/render_messages.h" 22 #include "chrome/common/render_messages.h"
23 #include "chrome/grit/generated_resources.h" 23 #include "chrome/grit/generated_resources.h"
24 #include "components/guest_view/browser/guest_view_manager.h" 24 #include "components/guest_view/browser/guest_view_manager.h"
25 #include "components/search_engines/template_url.h" 25 #include "components/search_engines/template_url.h"
26 #include "components/search_engines/template_url_service.h" 26 #include "components/search_engines/template_url_service.h"
27 #include "components/strings/grit/components_strings.h"
27 #include "components/web_cache/browser/web_cache_manager.h" 28 #include "components/web_cache/browser/web_cache_manager.h"
28 #include "content/public/browser/render_frame_host.h" 29 #include "content/public/browser/render_frame_host.h"
29 #include "content/public/browser/render_process_host.h" 30 #include "content/public/browser/render_process_host.h"
30 #include "content/public/browser/render_view_host.h" 31 #include "content/public/browser/render_view_host.h"
31 #include "content/public/browser/web_contents.h" 32 #include "content/public/browser/web_contents.h"
32 #include "content/public/common/context_menu_params.h" 33 #include "content/public/common/context_menu_params.h"
33 #include "net/base/load_states.h" 34 #include "net/base/load_states.h"
34 #include "net/http/http_request_headers.h" 35 #include "net/http/http_request_headers.h"
35 #include "ui/base/l10n/l10n_util.h" 36 #include "ui/base/l10n/l10n_util.h"
36 37
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 DCHECK(!content_type.empty()); 355 DCHECK(!content_type.empty());
355 open_url_params.uses_post = true; 356 open_url_params.uses_post = true;
356 open_url_params.browser_initiated_post_data = 357 open_url_params.browser_initiated_post_data =
357 base::RefCountedString::TakeString(post_data); 358 base::RefCountedString::TakeString(post_data);
358 open_url_params.extra_headers += base::StringPrintf( 359 open_url_params.extra_headers += base::StringPrintf(
359 "%s: %s\r\n", net::HttpRequestHeaders::kContentType, 360 "%s: %s\r\n", net::HttpRequestHeaders::kContentType,
360 content_type.c_str()); 361 content_type.c_str());
361 } 362 }
362 web_contents()->OpenURL(open_url_params); 363 web_contents()->OpenURL(open_url_params);
363 } 364 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper_unittest.cc ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698