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

Side by Side Diff: chrome/browser/chromeos/dom_ui/imageburner_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 "chrome/browser/chromeos/dom_ui/imageburner_ui.h" 5 #include "chrome/browser/chromeos/dom_ui/imageburner_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/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // ImageBurnUI 603 // ImageBurnUI
604 // 604 //
605 //////////////////////////////////////////////////////////////////////////////// 605 ////////////////////////////////////////////////////////////////////////////////
606 ImageBurnUI::ImageBurnUI(TabContents* contents) : DOMUI(contents) { 606 ImageBurnUI::ImageBurnUI(TabContents* contents) : DOMUI(contents) {
607 ImageBurnHandler* handler = new ImageBurnHandler(contents); 607 ImageBurnHandler* handler = new ImageBurnHandler(contents);
608 AddMessageHandler((handler)->Attach(this)); 608 AddMessageHandler((handler)->Attach(this));
609 ImageBurnUIHTMLSource* html_source = new ImageBurnUIHTMLSource(); 609 ImageBurnUIHTMLSource* html_source = new ImageBurnUIHTMLSource();
610 BrowserThread::PostTask( 610 BrowserThread::PostTask(
611 BrowserThread::IO, FROM_HERE, 611 BrowserThread::IO, FROM_HERE,
612 NewRunnableMethod( 612 NewRunnableMethod(
613 Singleton<ChromeURLDataManager>::get(), 613 ChromeURLDataManager::GetInstance(),
614 &ChromeURLDataManager::AddDataSource, 614 &ChromeURLDataManager::AddDataSource,
615 make_scoped_refptr(html_source))); 615 make_scoped_refptr(html_source)));
616 } 616 }
OLDNEW
« no previous file with comments | « chrome/browser/child_process_launcher.cc ('k') | chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698