Skip to content
  • jkrcal's avatar
    Clear browsing data from ContentSuggestionService only if exists. · 9d1e5045
    jkrcal authored
    Currently, we instantiate the service in BrowsingDataRemover even when
    it does not exist, yet. This means that we instantiate it on non-android
    platforms, in unit-tests, etc.
    
    This CL changes the logic so that the service is accessed only if it has
    been created previously. This way, the BrowsingDataRemover respects the
    start-up logic that decides whether to create the service or not.
    
    BUG=647222
    
    Review-Url: https://codereview.chromium.org/2342673004
    Cr-Commit-Position: refs/heads/master@{#419141}
    9d1e5045