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

Side by Side Diff: chrome/browser/chromeos/dom_ui/imageburner_ui.cc

Issue 6479007: Attempt 3 at: Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | 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 <algorithm> 7 #include <algorithm>
8 8
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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 642
643 //////////////////////////////////////////////////////////////////////////////// 643 ////////////////////////////////////////////////////////////////////////////////
644 // 644 //
645 // ImageBurnUI 645 // ImageBurnUI
646 // 646 //
647 //////////////////////////////////////////////////////////////////////////////// 647 ////////////////////////////////////////////////////////////////////////////////
648 ImageBurnUI::ImageBurnUI(TabContents* contents) : DOMUI(contents) { 648 ImageBurnUI::ImageBurnUI(TabContents* contents) : DOMUI(contents) {
649 ImageBurnHandler* handler = new ImageBurnHandler(contents); 649 ImageBurnHandler* handler = new ImageBurnHandler(contents);
650 AddMessageHandler((handler)->Attach(this)); 650 AddMessageHandler((handler)->Attach(this));
651 ImageBurnUIHTMLSource* html_source = new ImageBurnUIHTMLSource(); 651 ImageBurnUIHTMLSource* html_source = new ImageBurnUIHTMLSource();
652 BrowserThread::PostTask( 652 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
653 BrowserThread::IO, FROM_HERE,
654 NewRunnableMethod(
655 ChromeURLDataManager::GetInstance(),
656 &ChromeURLDataManager::AddDataSource,
657 make_scoped_refptr(html_source)));
658 } 653 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698