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

Side by Side Diff: chrome/browser/browser_main_gtk.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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_signin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/browser_main_gtk.h" 5 #include "chrome/browser/browser_main_gtk.h"
6 6
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #if defined(LINUX_SANDBOX_PATH) 79 #if defined(LINUX_SANDBOX_PATH)
80 if (!sandbox_binary) 80 if (!sandbox_binary)
81 sandbox_binary = LINUX_SANDBOX_PATH; 81 sandbox_binary = LINUX_SANDBOX_PATH;
82 #endif 82 #endif
83 83
84 std::string sandbox_cmd; 84 std::string sandbox_cmd;
85 if (sandbox_binary && !parsed_command_line().HasSwitch(switches::kNoSandbox)) 85 if (sandbox_binary && !parsed_command_line().HasSwitch(switches::kNoSandbox))
86 sandbox_cmd = sandbox_binary; 86 sandbox_cmd = sandbox_binary;
87 87
88 // Tickle the sandbox host and zygote host so they fork now. 88 // Tickle the sandbox host and zygote host so they fork now.
89 RenderSandboxHostLinux* shost = Singleton<RenderSandboxHostLinux>::get(); 89 RenderSandboxHostLinux* shost = RenderSandboxHostLinux::GetInstance();
90 shost->Init(sandbox_cmd); 90 shost->Init(sandbox_cmd);
91 ZygoteHost* zhost = Singleton<ZygoteHost>::get(); 91 ZygoteHost* zhost = ZygoteHost::GetInstance();
92 zhost->Init(sandbox_cmd); 92 zhost->Init(sandbox_cmd);
93 } 93 }
94 94
95 void DidEndMainMessageLoop() { 95 void DidEndMainMessageLoop() {
96 } 96 }
97 97
98 void RecordBreakpadStatusUMA(MetricsService* metrics) { 98 void RecordBreakpadStatusUMA(MetricsService* metrics) {
99 #if defined(USE_LINUX_BREAKPAD) 99 #if defined(USE_LINUX_BREAKPAD)
100 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); 100 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled());
101 #else 101 #else
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 BrowserX11IOErrorHandler); 133 BrowserX11IOErrorHandler);
134 } 134 }
135 135
136 #if !defined(OS_CHROMEOS) 136 #if !defined(OS_CHROMEOS)
137 // static 137 // static
138 BrowserMainParts* BrowserMainParts::CreateBrowserMainParts( 138 BrowserMainParts* BrowserMainParts::CreateBrowserMainParts(
139 const MainFunctionParams& parameters) { 139 const MainFunctionParams& parameters) {
140 return new BrowserMainPartsGtk(parameters); 140 return new BrowserMainPartsGtk(parameters);
141 } 141 }
142 #endif 142 #endif
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_signin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698