// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h" #include "base/lazy_instance.h" #include "chrome/renderer/chrome_render_process_observer.h" #include "chrome/renderer/isolated_world_ids.h" ChromeExtensionsRendererClient::ChromeExtensionsRendererClient() {} ChromeExtensionsRendererClient::~ChromeExtensionsRendererClient() {} // static ChromeExtensionsRendererClient* ChromeExtensionsRendererClient::GetInstance() { static base::LazyInstance client = LAZY_INSTANCE_INITIALIZER; return client.Pointer(); } bool ChromeExtensionsRendererClient::IsIncognitoProcess() const { return ChromeRenderProcessObserver::is_incognito_process(); } int ChromeExtensionsRendererClient::GetLowestIsolatedWorldId() const { return chrome::ISOLATED_WORLD_ID_EXTENSIONS; }