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

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

Issue 1811333003: Move the remaining NTP realted files to c/b/android/ntp subdir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/ntp_snippets_launcher.h" 5 #include "chrome/browser/android/ntp/ntp_snippets_launcher.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "jni/SnippetsLauncher_jni.h" 9 #include "jni/SnippetsLauncher_jni.h"
10 10
11 using content::BrowserThread; 11 using content::BrowserThread;
12 12
13 namespace { 13 namespace {
14 14
15 base::LazyInstance<NTPSnippetsLauncher> g_snippets_launcher = 15 base::LazyInstance<NTPSnippetsLauncher> g_snippets_launcher =
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 env, base::android::GetApplicationContext())); 51 env, base::android::GetApplicationContext()));
52 } 52 }
53 53
54 NTPSnippetsLauncher::~NTPSnippetsLauncher() { 54 NTPSnippetsLauncher::~NTPSnippetsLauncher() {
55 DCHECK_CURRENTLY_ON(BrowserThread::UI); 55 DCHECK_CURRENTLY_ON(BrowserThread::UI);
56 56
57 JNIEnv* env = base::android::AttachCurrentThread(); 57 JNIEnv* env = base::android::AttachCurrentThread();
58 Java_SnippetsLauncher_destroy(env, java_launcher_.obj()); 58 Java_SnippetsLauncher_destroy(env, java_launcher_.obj());
59 java_launcher_.Reset(); 59 java_launcher_.Reset();
60 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698