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

Unified Diff: components/dom_distiller/webui/resources/dom_distiller_viewer.js

Issue 105723002: Add the scheme chrome-distiller:// and hook up data source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to use onReceived for javascript Created 7 years 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: components/dom_distiller/webui/resources/dom_distiller_viewer.js
diff --git a/chrome/browser/password_manager/password_manager_util_stub.cc b/components/dom_distiller/webui/resources/dom_distiller_viewer.js
similarity index 56%
copy from chrome/browser/password_manager/password_manager_util_stub.cc
copy to components/dom_distiller/webui/resources/dom_distiller_viewer.js
index caf654a924629677f672900c5ae4b08c627feb5b..f0bca1a8ae8ee98841468eb6ef08e934a0c2de35 100644
--- a/chrome/browser/password_manager/password_manager_util_stub.cc
+++ b/components/dom_distiller/webui/resources/dom_distiller_viewer.js
@@ -2,10 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-namespace password_manager_util {
-
-bool AuthenticateUser() {
- return true;
+var domDistillerViewer = {
+ onReceivedTitle: function(title) {
+ document.getElementById('viewerTitle').innerText = title;
+ },
}
-
-} // namespace password_manager_util

Powered by Google App Engine
This is Rietveld 408576698