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

Side by Side Diff: chrome/browser/chromeos/dom_ui/login/login_ui.cc

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (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 "base/ref_counted_memory.h" 5 #include "base/ref_counted_memory.h"
6 #include "base/singleton.h" 6 #include "base/singleton.h"
7 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/chromeos/dom_ui/login/authenticator_facade.h" 10 #include "chrome/browser/chromeos/dom_ui/login/authenticator_facade.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 LoginUI::LoginUI(TabContents* contents) 132 LoginUI::LoginUI(TabContents* contents)
133 : DOMUI(contents) { 133 : DOMUI(contents) {
134 LoginUIHandler* handler = new LoginUIHandler(); 134 LoginUIHandler* handler = new LoginUIHandler();
135 AddMessageHandler(handler->Attach(this)); 135 AddMessageHandler(handler->Attach(this));
136 LoginUIHTMLSource* html_source = 136 LoginUIHTMLSource* html_source =
137 new LoginUIHTMLSource(MessageLoop::current()); 137 new LoginUIHTMLSource(MessageLoop::current());
138 138
139 BrowserThread::PostTask( 139 BrowserThread::PostTask(
140 BrowserThread::IO, FROM_HERE, 140 BrowserThread::IO, FROM_HERE,
141 NewRunnableMethod( 141 NewRunnableMethod(
142 Singleton<ChromeURLDataManager>::get(), 142 ChromeURLDataManager::GetInstance(),
143 &ChromeURLDataManager::AddDataSource, 143 &ChromeURLDataManager::AddDataSource,
144 make_scoped_refptr(html_source))); 144 make_scoped_refptr(html_source)));
145 } 145 }
146 146
147 } // namespace chromeos 147 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.cc ('k') | chrome/browser/chromeos/dom_ui/menu_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698