summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/first_run_customize_view.cc
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 07:09:30 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 07:09:30 +0000
commit2891839ea6e7748abba4c7b822b68342dc84cec2 (patch)
tree319dd7e421e3707cb8196a14a0ad17ec1df1d3ac /chrome/browser/views/first_run_customize_view.cc
parent2e3b520ff4318342b027ea8aa303e5981ea9ce79 (diff)
downloadchromium_src-2891839ea6e7748abba4c7b822b68342dc84cec2.zip
chromium_src-2891839ea6e7748abba4c7b822b68342dc84cec2.tar.gz
chromium_src-2891839ea6e7748abba4c7b822b68342dc84cec2.tar.bz2
This change adds shield icons to the buttons that need elevation to fix Issue 29631. This change adds a bool flag |need_elevation_| to notify when a button needs elevation to the NativeButton class and add shield icons to the following buttons.
- on the "Start Chromium" button on the first-run dialog when the "Make Chromium the default browser" checkbox is enabled. - on the "Set as Default" button on the default browser infobar. - on the "Make Google Chrome my default browser" button on the Basics tab of options. BUG=29631 TEST=Launch Chrome when it is not set as a default browser and see the "Set as Default" button has a shield icon. TEST=Launch Chrome when it is not set as a default browser and open the "Options" dialog, and see its "Make Google Chrome my default browser" button has a shield icon. TEST=Launch Chrome with a '--first-run' option when it is not set as a default browser, and see its "Launch Chrome" button has a shield icon. Review URL: http://codereview.chromium.org/661165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/first_run_customize_view.cc')
-rw-r--r--chrome/browser/views/first_run_customize_view.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/views/first_run_customize_view.cc b/chrome/browser/views/first_run_customize_view.cc
index d2886ad..aad06a7 100644
--- a/chrome/browser/views/first_run_customize_view.cc
+++ b/chrome/browser/views/first_run_customize_view.cc
@@ -167,6 +167,9 @@ void FirstRunCustomizeView::ButtonPressed(
// Disable the import combobox if the user unchecks the checkbox.
import_from_combo_->SetEnabled(import_cbox_->checked());
}
+
+ // Call the function of the base class to update its buttons.
+ FirstRunViewBase::ButtonPressed(sender, event);
}
int FirstRunCustomizeView::GetItemCount() {