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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 8785011: Protect status_area_ access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/login/webui_login_view.h" 5 #include "chrome/browser/chromeos/login/webui_login_view.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 gfx::Font WebUILoginView::GetStatusAreaFont(const gfx::Font& font) const { 263 gfx::Font WebUILoginView::GetStatusAreaFont(const gfx::Font& font) const {
264 return font; 264 return font;
265 } 265 }
266 266
267 StatusAreaButton::TextStyle WebUILoginView::GetStatusAreaTextStyle() const { 267 StatusAreaButton::TextStyle WebUILoginView::GetStatusAreaTextStyle() const {
268 return StatusAreaButton::GRAY_PLAIN; 268 return StatusAreaButton::GRAY_PLAIN;
269 } 269 }
270 270
271 void WebUILoginView::ButtonVisibilityChanged(views::View* button_view) { 271 void WebUILoginView::ButtonVisibilityChanged(views::View* button_view) {
272 status_area_->UpdateButtonVisibility(); 272 if (status_area_)
273 status_area_->UpdateButtonVisibility();
273 } 274 }
274 275
275 void WebUILoginView::OnRenderHostCreated(RenderViewHost* host) { 276 void WebUILoginView::OnRenderHostCreated(RenderViewHost* host) {
276 new SnifferObserver(host, GetWebUI()); 277 new SnifferObserver(host, GetWebUI());
277 } 278 }
278 279
279 void WebUILoginView::OnTabMainFrameLoaded() { 280 void WebUILoginView::OnTabMainFrameLoaded() {
280 VLOG(1) << "WebUI login main frame loaded."; 281 VLOG(1) << "WebUI login main frame loaded.";
281 } 282 }
282 283
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding 405 // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding
405 // an immediate authentication error (See crbug.com/103643). 406 // an immediate authentication error (See crbug.com/103643).
406 if (event.type == WebKit::WebInputEvent::KeyDown) { 407 if (event.type == WebKit::WebInputEvent::KeyDown) {
407 WebUI* web_ui = GetWebUI(); 408 WebUI* web_ui = GetWebUI();
408 if (web_ui) 409 if (web_ui)
409 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); 410 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
410 } 411 }
411 } 412 }
412 413
413 } // namespace chromeos 414 } // namespace chromeos
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