OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |