Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1383)

Unified Diff: content/public/renderer/key_system_info.cc

Issue 23678008: Refactor KeySystems code to call a function to populate the info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/key_system_info.cc
diff --git a/content/public/browser/javascript_dialog_manager.cc b/content/public/renderer/key_system_info.cc
similarity index 50%
copy from content/public/browser/javascript_dialog_manager.cc
copy to content/public/renderer/key_system_info.cc
index 0a58d9ffb3817aaa9045086bd13d92a9a4af4148..ca0f97ce1e26503face3f71d2b61ccd00d71fd94 100644
--- a/content/public/browser/javascript_dialog_manager.cc
+++ b/content/public/renderer/key_system_info.cc
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/public/browser/javascript_dialog_manager.h"
+#include "content/public/renderer/key_system_info.h"
namespace content {
-bool JavaScriptDialogManager::HandleJavaScriptDialog(
- WebContents* web_contents,
- bool accept,
- const string16* prompt_override) {
- return false;
+KeySystemInfo::KeySystemInfo(const std::string& key_system)
+ : key_system(key_system),
+ use_aes_decryptor(false) {
+}
+
+KeySystemInfo::~KeySystemInfo() {
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698