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

Side by Side Diff: chrome/browser/android/ntp/content_suggestions_notification_helper.cc

Issue 2586293002: Add helper to open URL in new activity (Closed)
Patch Set: Address comments Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/android/ntp/content_suggestions_notification_helper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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
5 #include "chrome/browser/android/ntp/content_suggestions_notification_helper.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "jni/ContentSuggestionsNotificationHelper_jni.h"
10
11 namespace ntp_snippets {
12
13 void ContentSuggestionsNotificationHelper::OpenURL(const GURL& url) {
14 JNIEnv* env = base::android::AttachCurrentThread();
15 Java_ContentSuggestionsNotificationHelper_openUrl(
16 env, base::android::ConvertUTF8ToJavaString(env, url.spec()));
17 }
18
19 } // namespace ntp_snippets
OLDNEW
« no previous file with comments | « chrome/browser/android/ntp/content_suggestions_notification_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698