OLD | NEW |
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/toolbar/toolbar_model_impl.h" | 5 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 10 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
11 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 11 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
12 #include "chrome/browser/autocomplete/autocomplete_input.h" | 12 #include "chrome/browser/autocomplete/autocomplete_input.h" |
13 #include "chrome/browser/autocomplete/autocomplete_match.h" | 13 #include "chrome/browser/autocomplete/autocomplete_match.h" |
14 #include "chrome/browser/google/google_util.h" | 14 #include "chrome/browser/google/google_util.h" |
15 #include "chrome/browser/policy/profile_policy_connector.h" | 15 #include "chrome/browser/policy/profile_policy_connector.h" |
16 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 16 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/search/search.h" | 18 #include "chrome/browser/search/search.h" |
19 #include "chrome/browser/ssl/ssl_error_info.h" | 19 #include "chrome/browser/ssl/ssl_error_info.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // If the page is still loading and the security style is unkown then consider | 296 // If the page is still loading and the security style is unkown then consider |
297 // the page secure. | 297 // the page secure. |
298 if (nav_controller.GetVisibleEntry()->GetSSL().security_style == | 298 if (nav_controller.GetVisibleEntry()->GetSSL().security_style == |
299 content::SECURITY_STYLE_UNKNOWN && nav_controller.GetVisibleEntry() != | 299 content::SECURITY_STYLE_UNKNOWN && nav_controller.GetVisibleEntry() != |
300 nav_controller.GetLastCommittedEntry()) | 300 nav_controller.GetLastCommittedEntry()) |
301 return true; | 301 return true; |
302 | 302 |
303 ToolbarModel::SecurityLevel security_level = GetSecurityLevel(); | 303 ToolbarModel::SecurityLevel security_level = GetSecurityLevel(); |
304 return security_level == SECURE || security_level == EV_SECURE; | 304 return security_level == SECURE || security_level == EV_SECURE; |
305 } | 305 } |
OLD | NEW |