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

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

Issue 17472002: Use new logos in requestAutocomplete splash page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/autofill_dialog_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 1510
1511 void AutofillDialogControllerImpl::FocusMoved() { 1511 void AutofillDialogControllerImpl::FocusMoved() {
1512 HidePopup(); 1512 HidePopup();
1513 } 1513 }
1514 1514
1515 gfx::Image AutofillDialogControllerImpl::SplashPageImage() const { 1515 gfx::Image AutofillDialogControllerImpl::SplashPageImage() const {
1516 // Only show the splash page the first few times the dialog is opened. 1516 // Only show the splash page the first few times the dialog is opened.
1517 int show_count = 1517 int show_count =
1518 profile_->GetPrefs()->GetInteger(::prefs::kAutofillDialogShowCount); 1518 profile_->GetPrefs()->GetInteger(::prefs::kAutofillDialogShowCount);
1519 if (show_count <= 4) { 1519 if (show_count <= 4) {
1520 // TODO(estade): this logo is not the right size.
1521 return ui::ResourceBundle::GetSharedInstance().GetImageNamed( 1520 return ui::ResourceBundle::GetSharedInstance().GetImageNamed(
1522 IDR_PRODUCT_LOGO); 1521 IDR_PRODUCT_LOGO_NAME_48);
1523 } 1522 }
1524 1523
1525 return gfx::Image(); 1524 return gfx::Image();
1526 } 1525 }
1527 1526
1528 void AutofillDialogControllerImpl::ViewClosed() { 1527 void AutofillDialogControllerImpl::ViewClosed() {
1529 GetManager()->RemoveObserver(this); 1528 GetManager()->RemoveObserver(this);
1530 1529
1531 // TODO(ahutter): Once a user can cancel Autocheckout mid-flow, log that 1530 // TODO(ahutter): Once a user can cancel Autocheckout mid-flow, log that
1532 // metric here. 1531 // metric here.
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL; 3096 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL;
3098 } 3097 }
3099 3098
3100 // Has Wallet items. 3099 // Has Wallet items.
3101 return has_autofill_profiles ? 3100 return has_autofill_profiles ?
3102 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL : 3101 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL :
3103 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL; 3102 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL;
3104 } 3103 }
3105 3104
3106 } // namespace autofill 3105 } // namespace autofill
OLDNEW
« chrome/app/theme/theme_resources.grd ('K') | « chrome/app/theme/theme_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698