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

Unified Diff: trunk/src/components/dom_distiller/core/url_utils_android.cc

Issue 187453003: Revert 254929 "Add UI hook for distilling web pages for test shell." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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
« no previous file with comments | « trunk/src/components/dom_distiller/core/url_utils_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/components/dom_distiller/core/url_utils_android.cc
===================================================================
--- trunk/src/components/dom_distiller/core/url_utils_android.cc (revision 254957)
+++ trunk/src/components/dom_distiller/core/url_utils_android.cc (working copy)
@@ -1,43 +0,0 @@
-// 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 "components/dom_distiller/core/url_utils_android.h"
-
-#include <string>
-
-#include "base/android/jni_string.h"
-#include "components/dom_distiller/core/url_utils.h"
-#include "jni/DomDistillerUrlUtils_jni.h"
-#include "url/gurl.h"
-
-namespace dom_distiller {
-
-namespace url_utils {
-
-namespace android {
-
-jstring GetDistillerViewUrlFromUrl(JNIEnv* env,
- jclass clazz,
- jstring j_scheme,
- jstring j_url) {
- std::string scheme(base::android::ConvertJavaStringToUTF8(env, j_scheme));
- GURL url(base::android::ConvertJavaStringToUTF8(env, j_url));
- if (!url.is_valid()) {
- return NULL;
- }
- GURL view_url =
- dom_distiller::url_utils::GetDistillerViewUrlFromUrl(scheme, url);
- if (!view_url.is_valid()) {
- return NULL;
- }
- return base::android::ConvertUTF8ToJavaString(env, view_url.spec()).Release();
-}
-
-bool RegisterUrlUtils(JNIEnv* env) { return RegisterNativesImpl(env); }
-
-} // namespace android
-
-} // namespace url_utils
-
-} // namespace dom_distiller
« no previous file with comments | « trunk/src/components/dom_distiller/core/url_utils_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698