webview_jni_onload.cc 607 B

123456789101112131415161718192021
  1. // Copyright 2015 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.
  4. #include "android_webview/lib/webview_jni_onload.h"
  5. #include "android_webview/lib/aw_main_delegate.h"
  6. #include "content/public/app/content_jni_onload.h"
  7. #include "content/public/app/content_main.h"
  8. namespace android_webview {
  9. bool OnJNIOnLoadInit() {
  10. if (!content::android::OnJNIOnLoadInit())
  11. return false;
  12. content::SetContentMainDelegate(new android_webview::AwMainDelegate());
  13. return true;
  14. }
  15. } // namespace android_webview