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

Side by Side Diff: chrome/browser/ui/browser_commands.cc

Issue 290573013: LanguageState should be owned by TranslateManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding TBR for CL Created 6 years, 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser_commands.h" 5 #include "chrome/browser/ui/browser_commands.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" 56 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
57 #include "chrome/browser/upgrade_detector.h" 57 #include "chrome/browser/upgrade_detector.h"
58 #include "chrome/browser/web_applications/web_app.h" 58 #include "chrome/browser/web_applications/web_app.h"
59 #include "chrome/common/chrome_switches.h" 59 #include "chrome/common/chrome_switches.h"
60 #include "chrome/common/chrome_version_info.h" 60 #include "chrome/common/chrome_version_info.h"
61 #include "chrome/common/content_restriction.h" 61 #include "chrome/common/content_restriction.h"
62 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 62 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
63 #include "chrome/common/pref_names.h" 63 #include "chrome/common/pref_names.h"
64 #include "components/bookmarks/browser/bookmark_model.h" 64 #include "components/bookmarks/browser/bookmark_model.h"
65 #include "components/bookmarks/browser/bookmark_utils.h" 65 #include "components/bookmarks/browser/bookmark_utils.h"
66 #include "components/translate/core/browser/language_state.h"
66 #include "components/web_modal/web_contents_modal_dialog_manager.h" 67 #include "components/web_modal/web_contents_modal_dialog_manager.h"
67 #include "content/public/browser/devtools_agent_host.h" 68 #include "content/public/browser/devtools_agent_host.h"
68 #include "content/public/browser/navigation_controller.h" 69 #include "content/public/browser/navigation_controller.h"
69 #include "content/public/browser/navigation_entry.h" 70 #include "content/public/browser/navigation_entry.h"
70 #include "content/public/browser/notification_service.h" 71 #include "content/public/browser/notification_service.h"
71 #include "content/public/browser/page_navigator.h" 72 #include "content/public/browser/page_navigator.h"
72 #include "content/public/browser/render_view_host.h" 73 #include "content/public/browser/render_view_host.h"
73 #include "content/public/browser/render_widget_host_view.h" 74 #include "content/public/browser/render_widget_host_view.h"
74 #include "content/public/browser/user_metrics.h" 75 #include "content/public/browser/user_metrics.h"
75 #include "content/public/browser/web_contents.h" 76 #include "content/public/browser/web_contents.h"
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 browser->profile(), 1261 browser->profile(),
1261 browser->host_desktop_type())); 1262 browser->host_desktop_type()));
1262 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1263 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1263 1264
1264 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1265 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1265 contents->GetRenderViewHost()->SyncRendererPrefs(); 1266 contents->GetRenderViewHost()->SyncRendererPrefs();
1266 app_browser->window()->Show(); 1267 app_browser->window()->Show();
1267 } 1268 }
1268 1269
1269 } // namespace chrome 1270 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698