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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 1402363013: Update location bar bubble/icon behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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 | « no previous file | chrome/browser/ui/autofill/save_card_bubble_controller_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/autofill/chrome_autofill_client.h" 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/autofill/personal_data_manager_factory.h" 10 #include "chrome/browser/autofill/personal_data_manager_factory.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 void ChromeAutofillClient::ConfirmSaveCreditCardLocally( 155 void ChromeAutofillClient::ConfirmSaveCreditCardLocally(
156 const base::Closure& callback) { 156 const base::Closure& callback) {
157 // TODO(bondd): Implement save card bubble for OS_MACOSX. 157 // TODO(bondd): Implement save card bubble for OS_MACOSX.
158 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) 158 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
159 // Do lazy initialization of SaveCardBubbleControllerImpl. 159 // Do lazy initialization of SaveCardBubbleControllerImpl.
160 autofill::SaveCardBubbleControllerImpl::CreateForWebContents(web_contents()); 160 autofill::SaveCardBubbleControllerImpl::CreateForWebContents(web_contents());
161 autofill::SaveCardBubbleControllerImpl* controller = 161 autofill::SaveCardBubbleControllerImpl* controller =
162 autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents()); 162 autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents());
163 controller->SetCallback(callback); 163 controller->SetCallback(callback);
164 controller->ShowBubble(); 164 controller->ShowBubble(false);
165 #else 165 #else
166 AutofillCCInfoBarDelegate::Create( 166 AutofillCCInfoBarDelegate::Create(
167 InfoBarService::FromWebContents(web_contents()), this, callback); 167 InfoBarService::FromWebContents(web_contents()), this, callback);
168 #endif 168 #endif
169 } 169 }
170 170
171 void ChromeAutofillClient::ConfirmSaveCreditCardToCloud( 171 void ChromeAutofillClient::ConfirmSaveCreditCardToCloud(
172 const base::Closure& callback, 172 const base::Closure& callback,
173 scoped_ptr<base::DictionaryValue> legal_message) { 173 scoped_ptr<base::DictionaryValue> legal_message) {
174 // TODO(bondd): Implement upload UI. 174 // TODO(bondd): Implement upload UI.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 ssl_status = navigation_entry->GetSSL(); 328 ssl_status = navigation_entry->GetSSL();
329 // Note: If changing the implementation below, also change 329 // Note: If changing the implementation below, also change
330 // AwAutofillClient::IsContextSecure. See crbug.com/505388 330 // AwAutofillClient::IsContextSecure. See crbug.com/505388
331 return ssl_status.security_style == 331 return ssl_status.security_style ==
332 content::SECURITY_STYLE_AUTHENTICATED && 332 content::SECURITY_STYLE_AUTHENTICATED &&
333 ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT; 333 ssl_status.content_status == content::SSLStatus::NORMAL_CONTENT;
334 } 334 }
335 335
336 } // namespace autofill 336 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/save_card_bubble_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698