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

Side by Side Diff: chrome/browser/external_protocol/external_protocol_handler.cc

Issue 2664253006: Clears out external protocol data when cookies and site data is cleared. (Closed)
Patch Set: a Created 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/external_protocol/external_protocol_handler.h" 5 #include "chrome/browser/external_protocol/external_protocol_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 return; 338 return;
339 } 339 }
340 UMA_HISTOGRAM_ENUMERATION(kHandleStateMetric, handle_state, 340 UMA_HISTOGRAM_ENUMERATION(kHandleStateMetric, handle_state,
341 HANDLE_STATE_LAST); 341 HANDLE_STATE_LAST);
342 } 342 }
343 343
344 // static 344 // static
345 void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) { 345 void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) {
346 registry->RegisterDictionaryPref(prefs::kExcludedSchemes); 346 registry->RegisterDictionaryPref(prefs::kExcludedSchemes);
347 } 347 }
348
349 // static
350 void ExternalProtocolHandler::ClearData(Profile* profile) {
351 PrefService* prefs = profile->GetPrefs();
352 prefs->ClearPref(prefs::kExcludedSchemes);
353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698