Fixing indentations
This commit is contained in:
parent
e5a9ef296d
commit
c4e5ba6015
2 changed files with 7 additions and 19 deletions
|
@ -508,12 +508,7 @@ App::App(v8::Isolate* isolate) {
|
||||||
Browser::Get()->AddObserver(this);
|
Browser::Get()->AddObserver(this);
|
||||||
content::GpuDataManager::GetInstance()->AddObserver(this);
|
content::GpuDataManager::GetInstance()->AddObserver(this);
|
||||||
content::BrowserChildProcessObserver::Add(this);
|
content::BrowserChildProcessObserver::Add(this);
|
||||||
int pid = 0;
|
base::ProcessId pid = base::GetCurrentProcId();
|
||||||
#if defined(OS_WIN)
|
|
||||||
pid = GetCurrentProcessId();
|
|
||||||
#elif defined(OS_POSIX)
|
|
||||||
pid = getpid();
|
|
||||||
#endif
|
|
||||||
std::unique_ptr<atom::ProcessMetric> process_metric(
|
std::unique_ptr<atom::ProcessMetric> process_metric(
|
||||||
new atom::ProcessMetric(
|
new atom::ProcessMetric(
|
||||||
"Browser",
|
"Browser",
|
||||||
|
@ -691,8 +686,7 @@ void App::BrowserChildProcessLaunchedAndConnected(
|
||||||
|
|
||||||
void App::BrowserChildProcessHostDisconnected(
|
void App::BrowserChildProcessHostDisconnected(
|
||||||
const content::ChildProcessData& data) {
|
const content::ChildProcessData& data) {
|
||||||
this->ChildProcessDisconnected(
|
this->ChildProcessDisconnected(base::GetProcId(data.handle));
|
||||||
base::GetProcId(data.handle));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::RenderProcessReady(
|
void App::RenderProcessReady(
|
||||||
|
@ -704,8 +698,7 @@ void App::RenderProcessReady(
|
||||||
|
|
||||||
void App::RenderProcessDisconnected(
|
void App::RenderProcessDisconnected(
|
||||||
content::RenderProcessHost* host) {
|
content::RenderProcessHost* host) {
|
||||||
this->ChildProcessDisconnected(
|
this->ChildProcessDisconnected(base::GetProcId(host->GetHandle()));
|
||||||
base::GetProcId(host->GetHandle()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::ChildProcessLaunched(
|
void App::ChildProcessLaunched(
|
||||||
|
|
|
@ -89,10 +89,8 @@ class App : public AtomBrowserClient::Delegate,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
base::FilePath GetAppPath() const;
|
base::FilePath GetAppPath() const;
|
||||||
void RenderProcessReady(
|
void RenderProcessReady(content::RenderProcessHost* host);
|
||||||
content::RenderProcessHost* host);
|
void RenderProcessDisconnected(content::RenderProcessHost* host);
|
||||||
void RenderProcessDisconnected(
|
|
||||||
content::RenderProcessHost* host);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit App(v8::Isolate* isolate);
|
explicit App(v8::Isolate* isolate);
|
||||||
|
@ -146,11 +144,8 @@ class App : public AtomBrowserClient::Delegate,
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetAppPath(const base::FilePath& app_path);
|
void SetAppPath(const base::FilePath& app_path);
|
||||||
void ChildProcessLaunched(
|
void ChildProcessLaunched(int process_type, base::ProcessHandle handle);
|
||||||
int process_type,
|
void ChildProcessDisconnected(base::ProcessId pid);
|
||||||
base::ProcessHandle handle);
|
|
||||||
void ChildProcessDisconnected(
|
|
||||||
base::ProcessId pid);
|
|
||||||
|
|
||||||
// Get/Set the pre-defined path in PathService.
|
// Get/Set the pre-defined path in PathService.
|
||||||
base::FilePath GetPath(mate::Arguments* args, const std::string& name);
|
base::FilePath GetPath(mate::Arguments* args, const std::string& name);
|
||||||
|
|
Loading…
Reference in a new issue