}
}
+#if BUILDFLAG(IS_TIZEN)
+ // as long as browser context is same we can re-use existing renderers but
+ // for cases like profile change ,incognito mode new browser context is
+ // created in such cases new browser context and existing render process host
+ // have different storage partition hence for such scenarios we allow the
+ // creation of new render process host to adhere to current chromium design.
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSingleRendererProcess)) {
+ if (render_process_host &&
+ !render_process_host->InSameStoragePartition(
+ browser_context->GetStoragePartition(site_instance, false))) {
+ render_process_host = nullptr;
+ }
+ }
+#endif
+
// If we found a process to reuse, double-check that it is suitable for
// |site_instance|. For example, if the SiteInfo for |site_instance| requires
// a dedicated process, we should never pick a process used by, or locked to,