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

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

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
« no previous file with comments | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/browser_dialogs.h » ('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 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 } 875 }
876 876
877 void ShowFindBar(Browser* browser) { 877 void ShowFindBar(Browser* browser) {
878 browser->GetFindBarController()->Show(); 878 browser->GetFindBarController()->Show();
879 } 879 }
880 880
881 void ShowWebsiteSettings( 881 void ShowWebsiteSettings(
882 Browser* browser, 882 Browser* browser,
883 content::WebContents* web_contents, 883 content::WebContents* web_contents,
884 const GURL& url, 884 const GURL& url,
885 const SecurityStateModel::SecurityInfo& security_info) { 885 const security_state::SecurityStateModel::SecurityInfo& security_info) {
886 browser->window()->ShowWebsiteSettings( 886 browser->window()->ShowWebsiteSettings(
887 Profile::FromBrowserContext(web_contents->GetBrowserContext()), 887 Profile::FromBrowserContext(web_contents->GetBrowserContext()),
888 web_contents, url, security_info); 888 web_contents, url, security_info);
889 } 889 }
890 890
891 void Print(Browser* browser) { 891 void Print(Browser* browser) {
892 #if defined(ENABLE_PRINTING) 892 #if defined(ENABLE_PRINTING)
893 printing::StartPrint( 893 printing::StartPrint(
894 browser->tab_strip_model()->GetActiveWebContents(), 894 browser->tab_strip_model()->GetActiveWebContents(),
895 browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled), 895 browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled),
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 browser->host_desktop_type())); 1319 browser->host_desktop_type()));
1320 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1320 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1321 1321
1322 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1322 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1323 contents->GetRenderViewHost()->SyncRendererPrefs(); 1323 contents->GetRenderViewHost()->SyncRendererPrefs();
1324 app_browser->window()->Show(); 1324 app_browser->window()->Show();
1325 } 1325 }
1326 #endif // defined(ENABLE_EXTENSIONS) 1326 #endif // defined(ENABLE_EXTENSIONS)
1327 1327
1328 } // namespace chrome 1328 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698