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

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

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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/mobile_setup_ui.h" 5 #include "chrome/browser/chromeos/dom_ui/mobile_setup_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 MobileSetupHandler* handler = new MobileSetupHandler(service_path); 1028 MobileSetupHandler* handler = new MobileSetupHandler(service_path);
1029 AddMessageHandler((handler)->Attach(this)); 1029 AddMessageHandler((handler)->Attach(this));
1030 handler->Init(contents); 1030 handler->Init(contents);
1031 MobileSetupUIHTMLSource* html_source = 1031 MobileSetupUIHTMLSource* html_source =
1032 new MobileSetupUIHTMLSource(service_path); 1032 new MobileSetupUIHTMLSource(service_path);
1033 1033
1034 // Set up the chrome://mobilesetup/ source. 1034 // Set up the chrome://mobilesetup/ source.
1035 BrowserThread::PostTask( 1035 BrowserThread::PostTask(
1036 BrowserThread::IO, FROM_HERE, 1036 BrowserThread::IO, FROM_HERE,
1037 NewRunnableMethod( 1037 NewRunnableMethod(
1038 Singleton<ChromeURLDataManager>::get(), 1038 ChromeURLDataManager::GetInstance(),
1039 &ChromeURLDataManager::AddDataSource, 1039 &ChromeURLDataManager::AddDataSource,
1040 make_scoped_refptr(html_source))); 1040 make_scoped_refptr(html_source)));
1041 } 1041 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dom_ui/menu_ui.cc ('k') | chrome/browser/chromeos/dom_ui/network_menu_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698