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

Side by Side Diff: ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.mm

Issue 2965043003: ToolbarModel: Supply offline page status. (Closed)
Patch Set: And, ios-simulator. Created 3 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
« no previous file with comments | « ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h ('k') | no next file » | 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 #import "ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h" 5 #import "ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "components/omnibox/browser/autocomplete_classifier.h" 8 #include "components/omnibox/browser/autocomplete_classifier.h"
9 #include "components/omnibox/browser/autocomplete_input.h" 9 #include "components/omnibox/browser/autocomplete_input.h"
10 #include "components/omnibox/browser/autocomplete_match.h" 10 #include "components/omnibox/browser/autocomplete_match.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 auto* client = IOSSecurityStateTabHelper::FromWebState(web_state); 102 auto* client = IOSSecurityStateTabHelper::FromWebState(web_state);
103 security_state::SecurityInfo result; 103 security_state::SecurityInfo result;
104 client->GetSecurityInfo(&result); 104 client->GetSecurityInfo(&result);
105 return result.malicious_content_status != 105 return result.malicious_content_status !=
106 security_state::MALICIOUS_CONTENT_STATUS_NONE; 106 security_state::MALICIOUS_CONTENT_STATUS_NONE;
107 } 107 }
108 108
109 const gfx::VectorIcon* ToolbarModelDelegateIOS::GetVectorIconOverride() const { 109 const gfx::VectorIcon* ToolbarModelDelegateIOS::GetVectorIconOverride() const {
110 return nullptr; 110 return nullptr;
111 } 111 }
112
113 bool ToolbarModelDelegateIOS::IsOfflinePage() const {
114 return false;
115 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698