create iconmanager as singleton class and cleanup code (#1)
* create iconmanager as singleton class and cleanup code
This commit is contained in:
parent
1b3cd87fc9
commit
b25b141642
15 changed files with 275 additions and 216 deletions
|
@ -5,7 +5,6 @@
|
|||
#include "chrome/browser/browser_process.h"
|
||||
|
||||
#include "chrome/browser/printing/print_job_manager.h"
|
||||
#include "chrome/browser/icon_manager.h"
|
||||
#include "ui/base/l10n/l10n_util.h"
|
||||
|
||||
BrowserProcess* g_browser_process = NULL;
|
||||
|
@ -13,8 +12,6 @@ BrowserProcess* g_browser_process = NULL;
|
|||
BrowserProcess::BrowserProcess()
|
||||
: print_job_manager_(new printing::PrintJobManager) {
|
||||
g_browser_process = this;
|
||||
|
||||
icon_manager_.reset(new IconManager);
|
||||
}
|
||||
|
||||
BrowserProcess::~BrowserProcess() {
|
||||
|
@ -28,7 +25,3 @@ std::string BrowserProcess::GetApplicationLocale() {
|
|||
printing::PrintJobManager* BrowserProcess::print_job_manager() {
|
||||
return print_job_manager_.get();
|
||||
}
|
||||
|
||||
IconManager* BrowserProcess::icon_manager() {
|
||||
return icon_manager_.get();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue