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

Side by Side Diff: ui/app_list/views/signin_view.cc

Issue 12088037: Revert 179302 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « ui/app_list/views/signin_view.h ('k') | 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/app_list/views/signin_view.h"
6
7 #include "content/public/browser/web_contents.h"
8 #include "ui/app_list/signin_delegate.h"
9 #include "ui/views/controls/webview/webview.h"
10 #include "ui/views/layout/fill_layout.h"
11
12 namespace app_list {
13
14 SigninView::SigninView(SigninDelegate* delegate)
15 : web_view_(new views::WebView(NULL)), delegate_(delegate) {
16 SetLayoutManager(new views::FillLayout());
17 AddChildView(web_view_);
18 }
19
20 SigninView::~SigninView() {
21 web_view_->SetWebContents(NULL);
22 }
23
24 void SigninView::BeginSignin() {
25 if (!delegate_)
26 return;
27
28 web_contents_.reset(delegate_->PrepareForSignin());
29 web_view_->SetWebContents(web_contents_.get());
30 }
31
32 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/signin_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698