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

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

Issue 228393004: Create bookmarks component with names of bookmark preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/tab_contents/core_tab_helper.h" 56 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
57 #include "chrome/browser/ui/tabs/tab_strip_model.h" 57 #include "chrome/browser/ui/tabs/tab_strip_model.h"
58 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" 58 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
59 #include "chrome/browser/upgrade_detector.h" 59 #include "chrome/browser/upgrade_detector.h"
60 #include "chrome/browser/web_applications/web_app.h" 60 #include "chrome/browser/web_applications/web_app.h"
61 #include "chrome/common/chrome_switches.h" 61 #include "chrome/common/chrome_switches.h"
62 #include "chrome/common/chrome_version_info.h" 62 #include "chrome/common/chrome_version_info.h"
63 #include "chrome/common/content_restriction.h" 63 #include "chrome/common/content_restriction.h"
64 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" 64 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
65 #include "chrome/common/pref_names.h" 65 #include "chrome/common/pref_names.h"
66 #include "components/bookmarks/bookmark_pref_names.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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(), 1264 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(),
1264 browser->host_desktop_type())); 1265 browser->host_desktop_type()));
1265 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1266 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1266 1267
1267 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1268 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1268 contents->GetRenderViewHost()->SyncRendererPrefs(); 1269 contents->GetRenderViewHost()->SyncRendererPrefs();
1269 app_browser->window()->Show(); 1270 app_browser->window()->Show();
1270 } 1271 }
1271 1272
1272 } // namespace chrome 1273 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698