Commit 64aeb562 authored by gunsch's avatar gunsch Committed by Commit bot

Chromecast: adds platform hooks for initializing client-auth support.

R=dougsteed@chromium.org,lcwu@chromium.org
BUG=336640

Review URL: https://codereview.chromium.org/687723002

Cr-Commit-Position: refs/heads/master@{#302000}
parent de6f3e1b
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "chromecast/browser/url_request_context_factory.h" #include "chromecast/browser/url_request_context_factory.h"
#include "chromecast/browser/webui/webui_cast.h" #include "chromecast/browser/webui/webui_cast.h"
#include "chromecast/common/chromecast_config.h" #include "chromecast/common/chromecast_config.h"
#include "chromecast/common/platform_client_auth.h"
#include "chromecast/net/network_change_notifier_cast.h" #include "chromecast/net/network_change_notifier_cast.h"
#include "chromecast/net/network_change_notifier_factory_cast.h" #include "chromecast/net/network_change_notifier_factory_cast.h"
#include "content/public/browser/browser_thread.h" #include "content/public/browser/browser_thread.h"
...@@ -126,6 +127,10 @@ void CastBrowserMainParts::PreMainMessageLoopRun() { ...@@ -126,6 +127,10 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
new breakpad::CrashDumpManager(crash_dumps_dir)); new breakpad::CrashDumpManager(crash_dumps_dir));
#endif #endif
if (!PlatformClientAuth::Initialize()) {
LOG(ERROR) << "PlatformClientAuth::Initialize failed.";
}
cast_browser_process_->SetRemoteDebuggingServer(new RemoteDebuggingServer()); cast_browser_process_->SetRemoteDebuggingServer(new RemoteDebuggingServer());
InitializeWebUI(); InitializeWebUI();
......
...@@ -162,6 +162,7 @@ ...@@ -162,6 +162,7 @@
'common/chromecast_config.h', 'common/chromecast_config.h',
'common/chromecast_switches.cc', 'common/chromecast_switches.cc',
'common/chromecast_switches.h', 'common/chromecast_switches.h',
'common/platform_client_auth.h',
'common/pref_names.cc', 'common/pref_names.cc',
'common/pref_names.h', 'common/pref_names.h',
'renderer/cast_content_renderer_client.cc', 'renderer/cast_content_renderer_client.cc',
...@@ -181,6 +182,7 @@ ...@@ -181,6 +182,7 @@
'browser/metrics/platform_metrics_providers_simple.cc', 'browser/metrics/platform_metrics_providers_simple.cc',
'browser/webui/webui_cast_simple.cc', 'browser/webui/webui_cast_simple.cc',
'common/chromecast_config_simple.cc', 'common/chromecast_config_simple.cc',
'common/platform_client_auth_simple.cc',
'renderer/key_systems_cast_simple.cc', 'renderer/key_systems_cast_simple.cc',
], ],
'conditions': [ 'conditions': [
......
// 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.
#ifndef CHROMECAST_COMMON_PLATFORM_CLIENT_AUTH_H_
#define CHROMECAST_COMMON_PLATFORM_CLIENT_AUTH_H_
namespace chromecast {
class PlatformClientAuth {
public:
static bool Initialize();
private:
PlatformClientAuth() {}
~PlatformClientAuth() {}
static bool initialized_;
};
} // namespace chromecast
#endif // CHROMECAST_COMMON_PLATFORM_CLIENT_AUTH_H_
// 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 "chromecast/common/platform_client_auth.h"
namespace chromecast {
// static
bool PlatformClientAuth::initialized_ = false;
// static
bool PlatformClientAuth::Initialize() {
initialized_ = true;
return true;
}
} // namespace chromecast
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment