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

Side by Side Diff: gfx/window_impl.cc

Issue 5682008: Make members of Singleton<T> private and only visible to the singleton type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 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
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 "gfx/window_impl.h" 5 #include "gfx/window_impl.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 class_ex.hInstance = NULL; 215 class_ex.hInstance = NULL;
216 class_ex.hIcon = GetDefaultWindowIcon(); 216 class_ex.hIcon = GetDefaultWindowIcon();
217 class_ex.hCursor = LoadCursor(NULL, IDC_ARROW); 217 class_ex.hCursor = LoadCursor(NULL, IDC_ARROW);
218 class_ex.hbrBackground = reinterpret_cast<HBRUSH>(class_info.background + 1); 218 class_ex.hbrBackground = reinterpret_cast<HBRUSH>(class_info.background + 1);
219 class_ex.lpszMenuName = NULL; 219 class_ex.lpszMenuName = NULL;
220 class_ex.lpszClassName = name.c_str(); 220 class_ex.lpszClassName = name.c_str();
221 class_ex.hIconSm = class_ex.hIcon; 221 class_ex.hIconSm = class_ex.hIcon;
222 ATOM atom = RegisterClassEx(&class_ex); 222 ATOM atom = RegisterClassEx(&class_ex);
223 DCHECK(atom); 223 DCHECK(atom);
224 224
225 Singleton<ClassRegistrar>()->RegisterClass(class_info, name, atom); 225 ClassRegistrar::GetInstance()->RegisterClass(class_info, name, atom);
226 226
227 return name; 227 return name;
228 } 228 }
229 229
230 } // namespace gfx 230 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698