GoogleURLTrackerInfoBarDelegate: Initialize uninitialized member in constructor.
[chromium-blink-merge.git] / chrome / browser / dom_distiller / tab_utils_android.cc
blob805f7e3657fef83d1b79e0bfa997da0efa4ad1ce
1 // Copyright 2014 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 "chrome/browser/dom_distiller/tab_utils_android.h"
7 #include <string>
9 #include "chrome/browser/dom_distiller/tab_utils.h"
10 #include "content/public/browser/web_contents.h"
11 #include "jni/DomDistillerTabUtils_jni.h"
13 namespace android {
15 void DistillCurrentPageAndView(JNIEnv* env,
16 jclass clazz,
17 jobject j_web_contents) {
18 content::WebContents* web_contents =
19 content::WebContents::FromJavaWebContents(j_web_contents);
20 ::DistillCurrentPageAndView(web_contents);
23 } // namespace android
25 bool RegisterDomDistillerTabUtils(JNIEnv* env) {
26 return android::RegisterNativesImpl(env);