Fixing indentations

This commit is contained in:
Hari Krishna Reddy Juturu 2017-05-24 21:15:34 -07:00
parent e5a9ef296d
commit c4e5ba6015
2 changed files with 7 additions and 19 deletions

View file

@ -508,12 +508,7 @@ App::App(v8::Isolate* isolate) {
Browser::Get()->AddObserver(this);
content::GpuDataManager::GetInstance()->AddObserver(this);
content::BrowserChildProcessObserver::Add(this);
int pid = 0;
#if defined(OS_WIN)
pid = GetCurrentProcessId();
#elif defined(OS_POSIX)
pid = getpid();
#endif
base::ProcessId pid = base::GetCurrentProcId();
std::unique_ptr<atom::ProcessMetric> process_metric(
new atom::ProcessMetric(
"Browser",
@ -691,8 +686,7 @@ void App::BrowserChildProcessLaunchedAndConnected(
void App::BrowserChildProcessHostDisconnected(
const content::ChildProcessData& data) {
this->ChildProcessDisconnected(
base::GetProcId(data.handle));
this->ChildProcessDisconnected(base::GetProcId(data.handle));
}
void App::RenderProcessReady(
@ -704,8 +698,7 @@ void App::RenderProcessReady(
void App::RenderProcessDisconnected(
content::RenderProcessHost* host) {
this->ChildProcessDisconnected(
base::GetProcId(host->GetHandle()));
this->ChildProcessDisconnected(base::GetProcId(host->GetHandle()));
}
void App::ChildProcessLaunched(

View file

@ -89,10 +89,8 @@ class App : public AtomBrowserClient::Delegate,
#endif
base::FilePath GetAppPath() const;
void RenderProcessReady(
content::RenderProcessHost* host);
void RenderProcessDisconnected(
content::RenderProcessHost* host);
void RenderProcessReady(content::RenderProcessHost* host);
void RenderProcessDisconnected(content::RenderProcessHost* host);
protected:
explicit App(v8::Isolate* isolate);
@ -146,11 +144,8 @@ class App : public AtomBrowserClient::Delegate,
private:
void SetAppPath(const base::FilePath& app_path);
void ChildProcessLaunched(
int process_type,
base::ProcessHandle handle);
void ChildProcessDisconnected(
base::ProcessId pid);
void ChildProcessLaunched(int process_type, base::ProcessHandle handle);
void ChildProcessDisconnected(base::ProcessId pid);
// Get/Set the pre-defined path in PathService.
base::FilePath GetPath(mate::Arguments* args, const std::string& name);