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

Side by Side Diff: chrome/browser/dom_distiller/tab_utils_android.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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/dom_distiller/tab_utils_android.h" 5 #include "chrome/browser/dom_distiller/tab_utils_android.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/prefs/pref_service.h"
11 #include "chrome/browser/dom_distiller/tab_utils.h" 10 #include "chrome/browser/dom_distiller/tab_utils.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "components/dom_distiller/core/experiments.h" 14 #include "components/dom_distiller/core/experiments.h"
15 #include "components/prefs/pref_service.h"
16 #include "components/url_formatter/url_formatter.h" 16 #include "components/url_formatter/url_formatter.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/public/common/content_constants.h" 18 #include "content/public/common/content_constants.h"
19 #include "jni/DomDistillerTabUtils_jni.h" 19 #include "jni/DomDistillerTabUtils_jni.h"
20 #include "net/base/net_util.h" 20 #include "net/base/net_util.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace android { 23 namespace android {
24 24
25 void DistillCurrentPageAndView(JNIEnv* env, 25 void DistillCurrentPageAndView(JNIEnv* env,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const JavaParamRef<jclass>& clazz) { 71 const JavaParamRef<jclass>& clazz) {
72 return dom_distiller::GetDistillerHeuristicsType() 72 return dom_distiller::GetDistillerHeuristicsType()
73 != dom_distiller::DistillerHeuristicsType::NONE; 73 != dom_distiller::DistillerHeuristicsType::NONE;
74 } 74 }
75 75
76 } // namespace android 76 } // namespace android
77 77
78 bool RegisterDomDistillerTabUtils(JNIEnv* env) { 78 bool RegisterDomDistillerTabUtils(JNIEnv* env) {
79 return android::RegisterNativesImpl(env); 79 return android::RegisterNativesImpl(env);
80 } 80 }
OLDNEW
« no previous file with comments | « chrome/browser/do_not_track_browsertest.cc ('k') | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698