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

Unified Diff: chrome/browser/ui/views/cookie_info_view.cc

Issue 9875001: views: Rename Combobox "selected getter/setter" accessors to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo box -> combobox Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/cookie_info_view.cc
diff --git a/chrome/browser/ui/views/cookie_info_view.cc b/chrome/browser/ui/views/cookie_info_view.cc
index 12f945e25db79799b03b2e0d4e4e547819e0d83e..993e68493df281d4e2157474b9ffd6d872ad8fb4 100644
--- a/chrome/browser/ui/views/cookie_info_view.cc
+++ b/chrome/browser/ui/views/cookie_info_view.cc
@@ -24,8 +24,12 @@
#include "ui/views/layout/grid_layout.h"
#include "ui/views/layout/layout_constants.h"
-static const int kCookieInfoViewBorderSize = 1;
-static const int kCookieInfoViewInsetSize = 3;
+namespace {
+
+const int kCookieInfoViewBorderSize = 1;
+const int kCookieInfoViewInsetSize = 3;
+
+} // namespace
///////////////////////////////////////////////////////////////////////////////
// CookieInfoView, public:
@@ -75,7 +79,7 @@ void CookieInfoView::SetCookie(
expire_combo_values_.push_back(
l10n_util::GetStringUTF16(IDS_COOKIES_COOKIE_EXPIRES_SESSION));
expires_value_combobox_->ModelChanged();
- expires_value_combobox_->SetSelectedItem(0);
+ expires_value_combobox_->SetSelectedIndex(0);
expires_value_combobox_->SetEnabled(true);
expires_value_combobox_->set_listener(this);
} else {
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ('k') | chrome/browser/ui/views/uninstall_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698