| Index: content/browser/browsing_instance.cc
|
| diff --git a/content/browser/browsing_instance.cc b/content/browser/browsing_instance.cc
|
| index 1759fc0917f5c3aab09a9051254d2c2acdc24bd5..266cf70c32629632d833c225160181e8fa28fd29 100644
|
| --- a/content/browser/browsing_instance.cc
|
| +++ b/content/browser/browsing_instance.cc
|
| @@ -10,7 +10,8 @@
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "content/browser/site_instance.h"
|
| -#include "content/browser/webui/web_ui_factory.h"
|
| +#include "content/browser/webui/web_ui_register.h"
|
| +#include "content/browser/webui/web_ui_source.h"
|
|
|
| // static
|
| BrowsingInstance::ProfileSiteInstanceMap
|
| @@ -39,9 +40,10 @@ bool BrowsingInstance::ShouldUseProcessPerSite(const GURL& url) {
|
| return true;
|
|
|
| // DevTools pages have WebUI type but should not reuse the same host.
|
| - if (WebUIFactory::UseWebUIForURL(profile_, url) &&
|
| - !url.SchemeIs(chrome::kChromeDevToolsScheme))
|
| + if (WebUIRegister::GetSource()->UseWebUIForURL(profile_, url) &&
|
| + !url.SchemeIs(chrome::kChromeDevToolsScheme)) {
|
| return true;
|
| + }
|
|
|
| // In all other cases, don't use process-per-site logic.
|
| return false;
|
|
|