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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_web_dialog.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/login_web_dialog.h" 5 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h"
6 6
7 #include <deque> 7 #include <deque>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 15 matching lines...) Expand all
26 namespace { 26 namespace {
27 27
28 // Default width/height ratio of screen size. 28 // Default width/height ratio of screen size.
29 const double kDefaultWidthRatio = 0.6; 29 const double kDefaultWidthRatio = 0.6;
30 const double kDefaultHeightRatio = 0.6; 30 const double kDefaultHeightRatio = 0.6;
31 31
32 // Default width/height ratio of minimal dialog size. 32 // Default width/height ratio of minimal dialog size.
33 const double kMinimumWidthRatio = 0.25; 33 const double kMinimumWidthRatio = 0.25;
34 const double kMinimumHeightRatio = 0.25; 34 const double kMinimumHeightRatio = 0.25;
35 35
36 base::LazyInstance<std::deque<WebContents*>> g_web_contents_stack = 36 base::LazyInstance<std::deque<WebContents*>>::DestructorAtExit
37 LAZY_INSTANCE_INITIALIZER; 37 g_web_contents_stack = LAZY_INSTANCE_INITIALIZER;
38 38
39 } // namespace 39 } // namespace
40 40
41 /////////////////////////////////////////////////////////////////////////////// 41 ///////////////////////////////////////////////////////////////////////////////
42 // LoginWebDialog, public: 42 // LoginWebDialog, public:
43 43
44 void LoginWebDialog::Delegate::OnDialogClosed() { 44 void LoginWebDialog::Delegate::OnDialogClosed() {
45 } 45 }
46 46
47 LoginWebDialog::LoginWebDialog(content::BrowserContext* browser_context, 47 LoginWebDialog::LoginWebDialog(content::BrowserContext* browser_context,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // so we must suppress it. 164 // so we must suppress it.
165 // http://crbug.com/443096 165 // http://crbug.com/443096
166 return (source && !chrome::FindBrowserWithWebContents(source)); 166 return (source && !chrome::FindBrowserWithWebContents(source));
167 } 167 }
168 168
169 bool LoginWebDialog::HandleShouldCreateWebContents() { 169 bool LoginWebDialog::HandleShouldCreateWebContents() {
170 return false; 170 return false;
171 } 171 }
172 172
173 } // namespace chromeos 173 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698