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

Side by Side Diff: chrome/browser/ui/webui/flash_ui.cc

Issue 11881055: Simplify WebUI data sources. Currently WebUI data sources implement a URLDataSourceDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix issue in about_ui exposed by cros tests Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/flash_ui.h" 5 #include "chrome/browser/ui/webui/flash_ui.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 /////////////////////////////////////////////////////////////////////////////// 381 ///////////////////////////////////////////////////////////////////////////////
382 382
383 FlashUI::FlashUI(content::WebUI* web_ui) : WebUIController(web_ui) { 383 FlashUI::FlashUI(content::WebUI* web_ui) : WebUIController(web_ui) {
384 content::RecordAction( 384 content::RecordAction(
385 UserMetricsAction("ViewAboutFlash")); 385 UserMetricsAction("ViewAboutFlash"));
386 386
387 web_ui->AddMessageHandler(new FlashDOMHandler()); 387 web_ui->AddMessageHandler(new FlashDOMHandler());
388 388
389 // Set up the about:flash source. 389 // Set up the about:flash source.
390 Profile* profile = Profile::FromWebUI(web_ui); 390 Profile* profile = Profile::FromWebUI(web_ui);
391 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource()); 391 ChromeURLDataManager::AddDataSourceImpl(profile, CreateFlashUIHTMLSource());
392 } 392 }
393 393
394 // static 394 // static
395 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes( 395 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes(
396 ui::ScaleFactor scale_factor) { 396 ui::ScaleFactor scale_factor) {
397 // Use the default icon for now. 397 // Use the default icon for now.
398 return NULL; 398 return NULL;
399 } 399 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698