<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/browser_prefs.h"

#include "chrome/browser/autofill_manager.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/cache_manager_host.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/metrics/metrics_service.h"
#include "chrome/browser/net/dns_global.h"
#include "chrome/browser/password_manager/password_manager.h"
#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
#include "chrome/browser/google_url_tracker.h"
#include "chrome/browser/session_startup_pref.h"
#include "chrome/browser/tab_contents/web_contents.h"

#if defined(OS_WIN)  // TODO(port): whittle this down as we port
#include "chrome/browser/external_protocol_handler.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/spellchecker.h"
#include "chrome/browser/ssl/ssl_manager.h"
#include "chrome/browser/task_manager.h"
#include "chrome/browser/views/bookmark_bar_view.h"
#include "chrome/browser/views/bookmark_manager_view.h"
#include "chrome/browser/views/bookmark_table_view.h"
#include "chrome/browser/views/frame/browser_view.h"
#include "chrome/browser/views/keyword_editor_view.h"
#include "chrome/browser/views/page_info_window.h"
#endif

namespace browser {

void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) {
  // Prefs in Local State
  GoogleURLTracker::RegisterPrefs(local_state);
  Browser::RegisterPrefs(local_state);
  BrowserRenderProcessHost::RegisterPrefs(local_state);
  CacheManagerHost::RegisterPrefs(local_state);
  SafeBrowsingService::RegisterPrefs(local_state);
  MetricsLog::RegisterPrefs(local_state);
  MetricsService::RegisterPrefs(local_state);
  browser_shutdown::RegisterPrefs(local_state);
  chrome_browser_net::RegisterPrefs(local_state);
#if defined(OS_WIN)  // TODO(port): whittle this down as we port
  BookmarkManagerView::RegisterPrefs(local_state);
  BrowserView::RegisterBrowserViewPrefs(local_state);
  PageInfoWindow::RegisterPrefs(local_state);
  TaskManager::RegisterPrefs(local_state);
  ExternalProtocolHandler::RegisterPrefs(local_state);
#endif

  // User prefs
  SessionStartupPref::RegisterUserPrefs(user_prefs);
  Browser::RegisterUserPrefs(user_prefs);
  PasswordManager::RegisterUserPrefs(user_prefs);
  chrome_browser_net::RegisterUserPrefs(user_prefs);
  DownloadManager::RegisterUserPrefs(user_prefs);
#if defined(OS_WIN)  // TODO(port): whittle this down as we port
  BookmarkBarView::RegisterUserPrefs(user_prefs);
  BookmarkTableView::RegisterUserPrefs(user_prefs);
  SSLManager::RegisterUserPrefs(user_prefs);
#endif
  AutofillManager::RegisterUserPrefs(user_prefs);
  TabContents::RegisterUserPrefs(user_prefs);
  TemplateURLPrepopulateData::RegisterUserPrefs(user_prefs);
  WebContents::RegisterUserPrefs(user_prefs);
}

}  // namespace browser
<commit_msg>Register SSLManager preferences on linux and mac.<commit_after>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/browser_prefs.h"

#include "chrome/browser/autofill_manager.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/cache_manager_host.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/google_url_tracker.h"
#include "chrome/browser/metrics/metrics_service.h"
#include "chrome/browser/net/dns_global.h"
#include "chrome/browser/password_manager/password_manager.h"
#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
#include "chrome/browser/session_startup_pref.h"
#include "chrome/browser/ssl/ssl_manager.h"
#include "chrome/browser/tab_contents/web_contents.h"

#if defined(OS_WIN)  // TODO(port): whittle this down as we port
#include "chrome/browser/external_protocol_handler.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/spellchecker.h"
#include "chrome/browser/task_manager.h"
#include "chrome/browser/views/bookmark_bar_view.h"
#include "chrome/browser/views/bookmark_manager_view.h"
#include "chrome/browser/views/bookmark_table_view.h"
#include "chrome/browser/views/frame/browser_view.h"
#include "chrome/browser/views/keyword_editor_view.h"
#include "chrome/browser/views/page_info_window.h"
#endif

namespace browser {

void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) {
  // Prefs in Local State
  GoogleURLTracker::RegisterPrefs(local_state);
  Browser::RegisterPrefs(local_state);
  BrowserRenderProcessHost::RegisterPrefs(local_state);
  CacheManagerHost::RegisterPrefs(local_state);
  SafeBrowsingService::RegisterPrefs(local_state);
  MetricsLog::RegisterPrefs(local_state);
  MetricsService::RegisterPrefs(local_state);
  browser_shutdown::RegisterPrefs(local_state);
  chrome_browser_net::RegisterPrefs(local_state);
#if defined(OS_WIN)  // TODO(port): whittle this down as we port
  BookmarkManagerView::RegisterPrefs(local_state);
  BrowserView::RegisterBrowserViewPrefs(local_state);
  PageInfoWindow::RegisterPrefs(local_state);
  TaskManager::RegisterPrefs(local_state);
  ExternalProtocolHandler::RegisterPrefs(local_state);
#endif

  // User prefs
  SessionStartupPref::RegisterUserPrefs(user_prefs);
  Browser::RegisterUserPrefs(user_prefs);
  PasswordManager::RegisterUserPrefs(user_prefs);
  chrome_browser_net::RegisterUserPrefs(user_prefs);
  DownloadManager::RegisterUserPrefs(user_prefs);
  SSLManager::RegisterUserPrefs(user_prefs);
#if defined(OS_WIN)  // TODO(port): whittle this down as we port
  BookmarkBarView::RegisterUserPrefs(user_prefs);
  BookmarkTableView::RegisterUserPrefs(user_prefs);
#endif
  AutofillManager::RegisterUserPrefs(user_prefs);
  TabContents::RegisterUserPrefs(user_prefs);
  TemplateURLPrepopulateData::RegisterUserPrefs(user_prefs);
  WebContents::RegisterUserPrefs(user_prefs);
}

}  // namespace browser

{'fraction_non_alphanumeric': 0.11207714195384129, 'fraction_numerical': 0.002529244388239014, 'mean_word_length': 8.11671469740634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4987766', 'n_tokens_mistral': 2071, 'n_tokens_neox': 2027, 'n_words': 306}