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

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

Issue 1212163011: Componentize chrome/browser/rlz (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation with gn Created 5 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 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"
11 #include "chrome/app/chrome_command_ids.h" 11 #include "chrome/app/chrome_command_ids.h"
12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 12 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/browsing_data/browsing_data_helper.h" 14 #include "chrome/browser/browsing_data/browsing_data_helper.h"
15 #include "chrome/browser/browsing_data/browsing_data_remover.h" 15 #include "chrome/browser/browsing_data/browsing_data_remover.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/devtools/devtools_window.h" 17 #include "chrome/browser/devtools/devtools_window.h"
18 #include "chrome/browser/dom_distiller/tab_utils.h" 18 #include "chrome/browser/dom_distiller/tab_utils.h"
19 #include "chrome/browser/lifetime/application_lifetime.h" 19 #include "chrome/browser/lifetime/application_lifetime.h"
20 #include "chrome/browser/platform_util.h" 20 #include "chrome/browser/platform_util.h"
21 #include "chrome/browser/prefs/incognito_mode_prefs.h" 21 #include "chrome/browser/prefs/incognito_mode_prefs.h"
22 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/rlz/rlz.h"
24 #include "chrome/browser/search/search.h" 23 #include "chrome/browser/search/search.h"
25 #include "chrome/browser/sessions/session_service_factory.h" 24 #include "chrome/browser/sessions/session_service_factory.h"
26 #include "chrome/browser/sessions/tab_restore_service.h" 25 #include "chrome/browser/sessions/tab_restore_service.h"
27 #include "chrome/browser/sessions/tab_restore_service_delegate.h" 26 #include "chrome/browser/sessions/tab_restore_service_delegate.h"
28 #include "chrome/browser/sessions/tab_restore_service_factory.h" 27 #include "chrome/browser/sessions/tab_restore_service_factory.h"
29 #include "chrome/browser/signin/signin_header_helper.h" 28 #include "chrome/browser/signin/signin_header_helper.h"
30 #include "chrome/browser/translate/chrome_translate_client.h" 29 #include "chrome/browser/translate/chrome_translate_client.h"
31 #include "chrome/browser/ui/accelerator_utils.h" 30 #include "chrome/browser/ui/accelerator_utils.h"
32 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" 31 #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
33 #include "chrome/browser/ui/browser.h" 32 #include "chrome/browser/ui/browser.h"
(...skipping 18 matching lines...) Expand all
52 #include "chrome/browser/ui/tabs/tab_strip_model.h" 51 #include "chrome/browser/ui/tabs/tab_strip_model.h"
53 #include "chrome/browser/upgrade_detector.h" 52 #include "chrome/browser/upgrade_detector.h"
54 #include "chrome/common/chrome_switches.h" 53 #include "chrome/common/chrome_switches.h"
55 #include "chrome/common/chrome_version_info.h" 54 #include "chrome/common/chrome_version_info.h"
56 #include "chrome/common/content_restriction.h" 55 #include "chrome/common/content_restriction.h"
57 #include "chrome/common/pref_names.h" 56 #include "chrome/common/pref_names.h"
58 #include "components/bookmarks/browser/bookmark_model.h" 57 #include "components/bookmarks/browser/bookmark_model.h"
59 #include "components/bookmarks/browser/bookmark_utils.h" 58 #include "components/bookmarks/browser/bookmark_utils.h"
60 #include "components/favicon/content/content_favicon_driver.h" 59 #include "components/favicon/content/content_favicon_driver.h"
61 #include "components/google/core/browser/google_util.h" 60 #include "components/google/core/browser/google_util.h"
61 #include "components/rlz/rlz_tracker.h"
62 #include "components/translate/core/browser/language_state.h" 62 #include "components/translate/core/browser/language_state.h"
63 #include "components/ui/zoom/page_zoom.h" 63 #include "components/ui/zoom/page_zoom.h"
64 #include "components/ui/zoom/zoom_controller.h" 64 #include "components/ui/zoom/zoom_controller.h"
65 #include "components/web_modal/popup_manager.h" 65 #include "components/web_modal/popup_manager.h"
66 #include "content/public/browser/devtools_agent_host.h" 66 #include "content/public/browser/devtools_agent_host.h"
67 #include "content/public/browser/navigation_controller.h" 67 #include "content/public/browser/navigation_controller.h"
68 #include "content/public/browser/navigation_entry.h" 68 #include "content/public/browser/navigation_entry.h"
69 #include "content/public/browser/notification_service.h" 69 #include "content/public/browser/notification_service.h"
70 #include "content/public/browser/page_navigator.h" 70 #include "content/public/browser/page_navigator.h"
71 #include "content/public/browser/render_view_host.h" 71 #include "content/public/browser/render_view_host.h"
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 browser->host_desktop_type())); 1277 browser->host_desktop_type()));
1278 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1278 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1279 1279
1280 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1280 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1281 contents->GetRenderViewHost()->SyncRendererPrefs(); 1281 contents->GetRenderViewHost()->SyncRendererPrefs();
1282 app_browser->window()->Show(); 1282 app_browser->window()->Show();
1283 } 1283 }
1284 #endif // defined(ENABLE_EXTENSIONS) 1284 #endif // defined(ENABLE_EXTENSIONS)
1285 1285
1286 } // namespace chrome 1286 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698