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

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: unit test debugging Created 5 years 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 } 874 }
875 875
876 void ShowFindBar(Browser* browser) { 876 void ShowFindBar(Browser* browser) {
877 browser->GetFindBarController()->Show(); 877 browser->GetFindBarController()->Show();
878 } 878 }
879 879
880 void ShowWebsiteSettings( 880 void ShowWebsiteSettings(
881 Browser* browser, 881 Browser* browser,
882 content::WebContents* web_contents, 882 content::WebContents* web_contents,
883 const GURL& url, 883 const GURL& url,
884 const SecurityStateModel::SecurityInfo& security_info) { 884 const security_state::SecurityStateModel::SecurityInfo& security_info) {
885 browser->window()->ShowWebsiteSettings( 885 browser->window()->ShowWebsiteSettings(
886 Profile::FromBrowserContext(web_contents->GetBrowserContext()), 886 Profile::FromBrowserContext(web_contents->GetBrowserContext()),
887 web_contents, url, security_info); 887 web_contents, url, security_info);
888 } 888 }
889 889
890 void Print(Browser* browser) { 890 void Print(Browser* browser) {
891 #if defined(ENABLE_PRINTING) 891 #if defined(ENABLE_PRINTING)
892 printing::StartPrint( 892 printing::StartPrint(
893 browser->tab_strip_model()->GetActiveWebContents(), 893 browser->tab_strip_model()->GetActiveWebContents(),
894 browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled), 894 browser->profile()->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled),
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 browser->host_desktop_type())); 1318 browser->host_desktop_type()));
1319 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1319 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1320 1320
1321 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1321 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1322 contents->GetRenderViewHost()->SyncRendererPrefs(); 1322 contents->GetRenderViewHost()->SyncRendererPrefs();
1323 app_browser->window()->Show(); 1323 app_browser->window()->Show();
1324 } 1324 }
1325 #endif // defined(ENABLE_EXTENSIONS) 1325 #endif // defined(ENABLE_EXTENSIONS)
1326 1326
1327 } // namespace chrome 1327 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698