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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove todo Created 5 years, 3 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
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/chrome_web_ui_controller_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 686
687 bitmap_result.pixel_size = candidate_sizes[selected_index]; 687 bitmap_result.pixel_size = candidate_sizes[selected_index];
688 } 688 }
689 } 689 }
690 690
691 RunFaviconCallbackAsync(callback, favicon_bitmap_results); 691 RunFaviconCallbackAsync(callback, favicon_bitmap_results);
692 } 692 }
693 693
694 // static 694 // static
695 ChromeWebUIControllerFactory* ChromeWebUIControllerFactory::GetInstance() { 695 ChromeWebUIControllerFactory* ChromeWebUIControllerFactory::GetInstance() {
696 return Singleton<ChromeWebUIControllerFactory>::get(); 696 return base::Singleton<ChromeWebUIControllerFactory>::get();
697 } 697 }
698 698
699 ChromeWebUIControllerFactory::ChromeWebUIControllerFactory() { 699 ChromeWebUIControllerFactory::ChromeWebUIControllerFactory() {
700 } 700 }
701 701
702 ChromeWebUIControllerFactory::~ChromeWebUIControllerFactory() { 702 ChromeWebUIControllerFactory::~ChromeWebUIControllerFactory() {
703 } 703 }
704 704
705 base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes( 705 base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes(
706 const GURL& page_url, ui::ScaleFactor scale_factor) const { 706 const GURL& page_url, ui::ScaleFactor scale_factor) const {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 #endif 764 #endif
765 765
766 // Android doesn't use the plugins pages. 766 // Android doesn't use the plugins pages.
767 if (page_url.host() == chrome::kChromeUIPluginsHost) 767 if (page_url.host() == chrome::kChromeUIPluginsHost)
768 return PluginsUI::GetFaviconResourceBytes(scale_factor); 768 return PluginsUI::GetFaviconResourceBytes(scale_factor);
769 769
770 #endif 770 #endif
771 771
772 return NULL; 772 return NULL;
773 } 773 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698