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

Side by Side Diff: chrome/browser/chromeos/dom_ui/keyboard_overlay_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/dom_ui/keyboard_overlay_ui.h" 5 #include "chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents) 288 KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents)
289 : HtmlDialogUI(contents) { 289 : HtmlDialogUI(contents) {
290 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(); 290 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler();
291 AddMessageHandler((handler)->Attach(this)); 291 AddMessageHandler((handler)->Attach(this));
292 KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource(); 292 KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource();
293 293
294 // Set up the chrome://keyboardoverlay/ source. 294 // Set up the chrome://keyboardoverlay/ source.
295 BrowserThread::PostTask( 295 BrowserThread::PostTask(
296 BrowserThread::IO, FROM_HERE, 296 BrowserThread::IO, FROM_HERE,
297 NewRunnableMethod( 297 NewRunnableMethod(
298 Singleton<ChromeURLDataManager>::get(), 298 ChromeURLDataManager::GetInstance(),
299 &ChromeURLDataManager::AddDataSource, 299 &ChromeURLDataManager::AddDataSource,
300 make_scoped_refptr(html_source))); 300 make_scoped_refptr(html_source)));
301 } 301 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dom_ui/imageburner_ui.cc ('k') | chrome/browser/chromeos/dom_ui/login/login_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698