} // namespace
AtomBrowserClient::AtomBrowserClient()
- : dying_render_process_(NULL) {
+ : dying_render_process_(nullptr) {
}
AtomBrowserClient::~AtomBrowserClient() {
base::CommandLine* command_line,
int child_process_id) {
WindowList* list = WindowList::GetInstance();
- NativeWindow* window = NULL;
+ NativeWindow* window = nullptr;
// Find the owner of this child process.
WindowList::const_iterator iter = std::find_if(
// If the render process is a newly started one, which means the window still
// uses the old going-to-be-swapped render process, then we try to find the
// window from the swapped render process.
- if (window == NULL && dying_render_process_ != NULL) {
+ if (!window && dying_render_process_) {
child_process_id = dying_render_process_->GetID();
WindowList::const_iterator iter = std::find_if(
list->begin(), list->end(), FindByProcessId(child_process_id));
window = *iter;
}
- if (window != NULL) {
+ if (window) {
window->AppendExtraCommandLineSwitches(command_line, child_process_id);
} else {
// Append commnad line arguments for guest web view.
}
}
- dying_render_process_ = NULL;
+ dying_render_process_ = nullptr;
}
brightray::BrowserMainParts* AtomBrowserClient::OverrideCreateBrowserMainParts(