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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java

Issue 2799263002: Reland "Android: Remove GetApplicationContext part 2" (Closed)
Patch Set: Fix extra parameter Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 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 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 package org.chromium.chrome.browser.preferences.privacy; 5 package org.chromium.chrome.browser.preferences.privacy;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.app.ProgressDialog; 8 import android.app.ProgressDialog;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.graphics.drawable.Drawable; 10 import android.graphics.drawable.Drawable;
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 general_summary.setLinkClickDelegate(new Runnable() { 599 general_summary.setLinkClickDelegate(new Runnable() {
600 @Override 600 @Override
601 public void run() { 601 public void run() {
602 HelpAndFeedback.getInstance(getActivity()).show( 602 HelpAndFeedback.getInstance(getActivity()).show(
603 getActivity(), 603 getActivity(),
604 getResources().getString(R.string.help_context_clear_bro wsing_data), 604 getResources().getString(R.string.help_context_clear_bro wsing_data),
605 Profile.getLastUsedProfile(), 605 Profile.getLastUsedProfile(),
606 null); 606 null);
607 } 607 }
608 }); 608 });
609 if (ChromeSigninController.get(getActivity()).isSignedIn()) { 609 if (ChromeSigninController.get().isSignedIn()) {
610 general_summary.setSummary( 610 general_summary.setSummary(
611 R.string.clear_browsing_data_footnote_sync_and_site_settings ); 611 R.string.clear_browsing_data_footnote_sync_and_site_settings );
612 } else { 612 } else {
613 getPreferenceScreen().removePreference(google_summary); 613 getPreferenceScreen().removePreference(google_summary);
614 general_summary.setSummary(R.string.clear_browsing_data_footnote_sit e_settings); 614 general_summary.setSummary(R.string.clear_browsing_data_footnote_sit e_settings);
615 } 615 }
616 } 616 }
617 617
618 @Override 618 @Override
619 public void onActivityCreated(Bundle savedInstanceState) { 619 public void onActivityCreated(Bundle savedInstanceState) {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 "History.ClearBrowsingData.ImportantIgnoredPercent", 740 "History.ClearBrowsingData.ImportantIgnoredPercent",
741 ignoredDomains.length * IMPORTANT_SITES_PERCENTAGE_BUCKE T_COUNT 741 ignoredDomains.length * IMPORTANT_SITES_PERCENTAGE_BUCKE T_COUNT
742 / mSortedImportantDomains.length, 742 / mSortedImportantDomains.length,
743 IMPORTANT_SITES_PERCENTAGE_BUCKET_COUNT + 1); 743 IMPORTANT_SITES_PERCENTAGE_BUCKET_COUNT + 1);
744 } 744 }
745 clearBrowsingData(getSelectedOptions(), deselectedDomains, deselecte dDomainReasons, 745 clearBrowsingData(getSelectedOptions(), deselectedDomains, deselecte dDomainReasons,
746 ignoredDomains, ignoredDomainReasons); 746 ignoredDomains, ignoredDomainReasons);
747 } 747 }
748 } 748 }
749 } 749 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698