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

Side by Side Diff: chrome/browser/dom_ui/downloads_ui.cc

Issue 101026: Change chrome-ui to chrome. I didn't go too far in converting existing string... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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/dom_ui/downloads_ui.h" 5 #include "chrome/browser/dom_ui/downloads_ui.h"
6 6
7 #include "base/gfx/png_encoder.h" 7 #include "base/gfx/png_encoder.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "base/thread.h" 9 #include "base/thread.h"
10 #include "base/time_format.h" 10 #include "base/time_format.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 511
512 DownloadsUI::DownloadsUI(TabContents* contents) : DOMUI(contents) { 512 DownloadsUI::DownloadsUI(TabContents* contents) : DOMUI(contents) {
513 DownloadManager* dlm = GetProfile()->GetDownloadManager(); 513 DownloadManager* dlm = GetProfile()->GetDownloadManager();
514 514
515 DownloadsDOMHandler* handler = new DownloadsDOMHandler(this, dlm); 515 DownloadsDOMHandler* handler = new DownloadsDOMHandler(this, dlm);
516 AddMessageHandler(handler); 516 AddMessageHandler(handler);
517 handler->Init(); 517 handler->Init();
518 518
519 DownloadsUIHTMLSource* html_source = new DownloadsUIHTMLSource(); 519 DownloadsUIHTMLSource* html_source = new DownloadsUIHTMLSource();
520 520
521 // Set up the chrome-ui://downloads/ source. 521 // Set up the chrome://downloads/ source.
522 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, 522 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE,
523 NewRunnableMethod(&chrome_url_data_manager, 523 NewRunnableMethod(&chrome_url_data_manager,
524 &ChromeURLDataManager::AddDataSource, 524 &ChromeURLDataManager::AddDataSource,
525 html_source)); 525 html_source));
526 } 526 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698