Durable Storage: Refactor browser test and test the basic "deny" flow.
[chromium-blink-merge.git] / extensions / browser / extensions_browser_client.cc
blob495ac50c0da403b79512358fda81fe135b58829c
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/browser/extensions_browser_client.h"
7 #include "base/basictypes.h"
8 #include "base/logging.h"
9 #include "extensions/browser/extension_error.h"
11 namespace extensions {
13 namespace {
15 ExtensionsBrowserClient* g_client = NULL;
17 } // namespace
19 void ExtensionsBrowserClient::ReportError(content::BrowserContext* context,
20 scoped_ptr<ExtensionError> error) {
21 LOG(ERROR) << error->GetDebugString();
24 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() {
25 return g_client;
28 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) {
29 g_client = client;
32 } // namespace extensions