blob: 2ff62241712e00e06a4d5e7ec85d4dd8d7ff59fa [file] [log] [blame]
// 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_isolated_world_ids.h"
#include "chrome/renderer/chrome_render_process_observer.h"
ChromeExtensionsRendererClient::ChromeExtensionsRendererClient() {}
ChromeExtensionsRendererClient::~ChromeExtensionsRendererClient() {}
// static
ChromeExtensionsRendererClient* ChromeExtensionsRendererClient::GetInstance() {
static base::LazyInstance<ChromeExtensionsRendererClient> 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;
}