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

Side by Side Diff: chrome/browser/views/cookie_info_view.cc

Issue 1605034: Merge 43966 - Register the cookie info view as listener to the expiry date co... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 10 years, 8 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
« no previous file with comments | « no previous file | 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/cookie_info_view.h" 5 #include "chrome/browser/views/cookie_info_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/gfx/color_utils.h" 10 #include "app/gfx/color_utils.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 if (editable_expiration_date_) { 71 if (editable_expiration_date_) {
72 expire_combo_values_.clear(); 72 expire_combo_values_.clear();
73 if (cookie.DoesExpire()) 73 if (cookie.DoesExpire())
74 expire_combo_values_.push_back(expire_text); 74 expire_combo_values_.push_back(expire_text);
75 expire_combo_values_.push_back( 75 expire_combo_values_.push_back(
76 l10n_util::GetString(IDS_COOKIES_COOKIE_EXPIRES_SESSION)); 76 l10n_util::GetString(IDS_COOKIES_COOKIE_EXPIRES_SESSION));
77 expires_value_combobox_->ModelChanged(); 77 expires_value_combobox_->ModelChanged();
78 expires_value_combobox_->SetSelectedItem(0); 78 expires_value_combobox_->SetSelectedItem(0);
79 expires_value_combobox_->SetEnabled(true); 79 expires_value_combobox_->SetEnabled(true);
80 expires_value_combobox_->set_listener(this);
80 } else { 81 } else {
81 expires_value_field_->SetText(expire_text); 82 expires_value_field_->SetText(expire_text);
82 } 83 }
83 84
84 send_for_value_field_->SetText(cookie.IsSecure() ? 85 send_for_value_field_->SetText(cookie.IsSecure() ?
85 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_SECURE) : 86 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_SECURE) :
86 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_ANY)); 87 l10n_util::GetString(IDS_COOKIES_COOKIE_SENDFOR_ANY));
87 EnableCookieDisplay(true); 88 EnableCookieDisplay(true);
88 Layout(); 89 Layout();
89 } 90 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 created_value_field_->SetReadOnly(true); 267 created_value_field_->SetReadOnly(true);
267 created_value_field_->RemoveBorder(); 268 created_value_field_->RemoveBorder();
268 created_value_field_->SetBackgroundColor(text_area_background); 269 created_value_field_->SetBackgroundColor(text_area_background);
269 if (expires_value_field_) { 270 if (expires_value_field_) {
270 expires_value_field_->SetReadOnly(true); 271 expires_value_field_->SetReadOnly(true);
271 expires_value_field_->RemoveBorder(); 272 expires_value_field_->RemoveBorder();
272 expires_value_field_->SetBackgroundColor(text_area_background); 273 expires_value_field_->SetBackgroundColor(text_area_background);
273 } 274 }
274 } 275 }
275 276
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698