Deprecate the BrowserWindow.restart.

Now BrowserWindow.reload would just do the same thing.
This commit is contained in:
Cheng Zhao 2014-04-29 15:35:12 +08:00
parent 19698fc739
commit a85db2d780
4 changed files with 8 additions and 8 deletions

View file

@ -99,11 +99,14 @@ void WebContents::Stop() {
}
void WebContents::Reload() {
web_contents()->GetController().Reload(false);
// Navigating to a URL would always restart the renderer process, we want this
// because normal reloading will break our node integration.
// This is done by AtomBrowserClient::ShouldSwapProcessesForNavigation.
LoadURL(GetURL());
}
void WebContents::ReloadIgnoringCache() {
web_contents()->GetController().ReloadIgnoringCache(false);
Reload();
}
bool WebContents::CanGoBack() const {