Skip to content

Commit

Permalink
components: Rename encryptor directory to os_crypt.
Browse files Browse the repository at this point in the history
Joi suggested doing this rename in a follow up CL (
https://codereview.chromium.org/183953005/diff/20001/components/encryptor/encryptor_password_mac.h#newcode16).
So here it is.

BUG=341293
TEST=None, no functional changes.
R=joi@chromium.org,thestig@chromium.org,bcwhite@chromium.org

Review URL: https://codereview.chromium.org/200713005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257573 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tfarina@chromium.org committed Mar 18, 2014
1 parent 77d2fa7 commit c523d20
Show file tree
Hide file tree
Showing 59 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion chrome/browser/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ include_rules = [
"+components/autofill/core/common",
"+components/breakpad",
"+components/dom_distiller",
"+components/encryptor",
"+components/keyed_service",
"+components/language_usage_metrics",
"+components/nacl/browser",
"+components/nacl/common",
"+components/navigation_interception",
"+components/navigation_metrics",
"+components/os_crypt",
"+components/password_manager",
"+components/policy",
"+components/precache",
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/importer/ie_importer_browsertest_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/core/common/password_form.h"
#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/importer/in_process_importer_bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "ui/base/l10n/l10n_util.h"

#if defined(OS_WIN)
#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"
#endif

#include <iterator>
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/net/cookie_store_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/cookie_crypto_delegate.h"
#include "content/public/browser/cookie_store_factory.h"
Expand Down
4 changes: 2 additions & 2 deletions chrome/browser/password_manager/password_store_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "components/encryptor/encryptor_switches.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/os_crypt/os_crypt_switches.h"
#include "components/password_manager/core/browser/login_database.h"
#include "components/password_manager/core/browser/password_store.h"
#include "components/password_manager/core/browser/password_store_default.h"
Expand Down Expand Up @@ -148,7 +148,7 @@ KeyedService* PasswordStoreFactory::BuildServiceInstanceFor(
#elif defined(OS_MACOSX)
crypto::AppleKeychain* keychain =
CommandLine::ForCurrentProcess()->HasSwitch(
encryptor::switches::kUseMockKeychain) ?
os_crypt::switches::kUseMockKeychain) ?
new crypto::MockAppleKeychain() : new crypto::AppleKeychain();
ps = new PasswordStoreMac(
main_thread_runner, db_thread_runner, keychain, login_db.release());
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/password_manager/password_store_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"
#include "components/password_manager/core/browser/password_manager.h"
#include "content/public/browser/browser_thread.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "chrome/browser/webdata/logins_table.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/test/base/testing_profile.h"
#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"
#include "components/password_manager/core/browser/password_form_data.h"
#include "components/password_manager/core/browser/password_store_consumer.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "chrome/common/extensions/features/feature_channel.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/browser/event_router.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/signin/local_auth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/pref_names.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "components/user_prefs/pref_registry_syncable.h"
#include "crypto/random.h"
#include "crypto/secure_util.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/signin/local_auth_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "chrome/test/base/testing_pref_service_syncable.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"

#include "testing/gtest/include/gtest/gtest.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "testing/gtest/include/gtest/gtest.h"

#if defined(OS_MACOSX)
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#endif

// Defining constant here to handle backward compatiblity tests, but this
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/sync/test/integration/sync_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_browser_thread.h"
#include "google_apis/gaia/gaia_urls.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/webdata/logins_table_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"
#include "sql/statement.h"

bool LoginsTable::AddIE7Login(const IE7PasswordInfo& info) {
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/webdata/web_data_service_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "base/bind.h"
#include "chrome/browser/webdata/logins_table.h"
#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"
#include "components/webdata/common/web_database_service.h"

using base::Bind;
Expand Down
4 changes: 2 additions & 2 deletions chrome/chrome_browser.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
'../components/component_strings.gyp:component_strings',
'../components/components.gyp:autofill_core_browser',
'../components/components.gyp:cloud_devices',
'../components/components.gyp:encryptor',
'../components/components.gyp:navigation_metrics',
'../components/components.gyp:password_manager_core_common',
'../components/components.gyp:os_crypt',
'../components/components.gyp:password_manager_core_browser',
'../components/components.gyp:password_manager_core_common',
'../components/components.gyp:policy_component',
'../components/components.gyp:precache_core',
'../components/components.gyp:rappor',
Expand Down
2 changes: 1 addition & 1 deletion chrome/test/base/in_process_browser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "chrome/test/base/test_switches.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
#include "content/public/test/browser_test_utils.h"
Expand Down
4 changes: 2 additions & 2 deletions chrome/test/base/test_launcher_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "base/strings/string_number_conversions.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "components/encryptor/encryptor_switches.h"
#include "components/os_crypt/os_crypt_switches.h"

#if defined(USE_AURA)
#include "ui/wm/core/wm_core_switches.h"
Expand Down Expand Up @@ -66,7 +66,7 @@ void PrepareBrowserCommandLineForTests(CommandLine* command_line) {

#if defined(OS_MACOSX)
// Use mock keychain on mac to prevent blocking permissions dialogs.
command_line->AppendSwitch(encryptor::switches::kUseMockKeychain);
command_line->AppendSwitch(os_crypt::switches::kUseMockKeychain);
#endif

command_line->AppendSwitch(switches::kDisableComponentUpdate);
Expand Down
4 changes: 2 additions & 2 deletions components/autofill.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
'autofill_regexes',
'component_resources.gyp:component_resources',
'component_strings.gyp:component_strings',
'encryptor',
'os_crypt',
'user_prefs',
'webdata_common',
],
Expand Down Expand Up @@ -347,7 +347,7 @@
'autofill_regexes',
'component_resources.gyp:component_resources',
'component_strings.gyp:component_strings',
'encryptor',
'os_crypt',
'user_prefs',
'webdata_common',
],
Expand Down
2 changes: 1 addition & 1 deletion components/autofill/core/DEPS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include_rules = [
"+components/os_crypt",
# TODO(joi): Perhaps PrefRegistrySyncable should be a separate
# component since it is currently in the same component as
# UserPrefs, which uses content::BrowserContext.
"+components/user_prefs/pref_registry_syncable.h",
"+components/encryptor",
]
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "components/autofill/core/browser/personal_data_manager_observer.h"
#include "components/autofill/core/browser/phone_number.h"
#include "components/autofill/core/browser/phone_number_i18n.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"

using base::win::RegKey;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/credit_card.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "testing/gtest/include/gtest/gtest.h"

using base::win::RegKey;
Expand Down
2 changes: 1 addition & 1 deletion components/autofill/core/browser/autofill_test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "components/user_prefs/pref_registry_syncable.h"

using base::ASCIIToUTF16;
Expand Down
2 changes: 1 addition & 1 deletion components/autofill/core/browser/webdata/autofill_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "components/autofill/core/browser/webdata/autofill_change.h"
#include "components/autofill/core/browser/webdata/autofill_entry.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "components/webdata/common/web_database.h"
#include "sql/statement.h"
#include "sql/transaction.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "components/autofill/core/browser/webdata/autofill_entry.h"
#include "components/autofill/core/browser/webdata/autofill_table.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/encryptor/os_crypt.h"
#include "components/os_crypt/os_crypt.h"
#include "components/webdata/common/web_database.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
Expand Down
2 changes: 1 addition & 1 deletion components/components.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
'breakpad.gypi',
'cloud_devices.gypi',
'dom_distiller.gypi',
'encryptor.gypi',
'json_schema.gypi',
'keyed_service.gypi',
'language_usage_metrics.gypi',
'metrics.gypi',
'navigation_metrics.gypi',
'onc.gypi',
'os_crypt.gypi',
'password_manager.gypi',
'policy.gypi',
'precache.gypi',
Expand Down
16 changes: 8 additions & 8 deletions components/components_tests.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,15 @@
'autofill/core/browser/password_generator_unittest.cc',
'autofill/core/browser/personal_data_manager_unittest.cc',
'autofill/core/browser/phone_field_unittest.cc',
'autofill/core/browser/phone_number_unittest.cc',
'autofill/core/browser/phone_number_i18n_unittest.cc',
'autofill/core/browser/phone_number_unittest.cc',
'autofill/core/browser/validation_unittest.cc',
'autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc',
'autofill/core/browser/webdata/autofill_table_unittest.cc',
'autofill/core/browser/webdata/web_data_service_unittest.cc',
'autofill/core/common/form_data_unittest.cc',
'autofill/core/common/form_field_data_unittest.cc',
'autofill/core/common/password_form_fill_data_unittest.cc',
'keyed_service/content/browser_context_dependency_manager_unittest.cc',
'keyed_service/core/dependency_graph_unittest.cc',
'cloud_devices/printer_description_unittest.cc',
'dom_distiller/core/article_entry_unittest.cc',
'dom_distiller/core/distiller_unittest.cc',
Expand All @@ -69,9 +67,14 @@
'json_schema/json_schema_validator_unittest.cc',
'json_schema/json_schema_validator_unittest_base.cc',
'json_schema/json_schema_validator_unittest_base.h',
'keyed_service/content/browser_context_dependency_manager_unittest.cc',
'keyed_service/core/dependency_graph_unittest.cc',
'language_usage_metrics/language_usage_metrics_unittest.cc',
'metrics/metrics_hashes_unittest.cc',
'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
'os_crypt/ie7_password_win_unittest.cc',
'os_crypt/keychain_password_mac_unittest.mm',
'os_crypt/os_crypt_unittest.cc',
'password_manager/core/browser/login_database_unittest.cc',
'password_manager/core/browser/password_form_manager_unittest.cc',
'password_manager/core/browser/password_generation_manager_unittest.cc',
Expand Down Expand Up @@ -121,9 +124,6 @@
'variations/variations_seed_processor_unittest.cc',
'variations/variations_seed_simulator_unittest.cc',
'visitedlink/test/visitedlink_unittest.cc',
'encryptor/keychain_password_mac_unittest.mm',
'encryptor/ie7_password_unittest_win.cc',
'encryptor/os_crypt_unittest.cc',
'web_modal/web_contents_modal_dialog_manager_unittest.cc',
],
'include_dirs': [
Expand Down Expand Up @@ -165,8 +165,8 @@
'components.gyp:dom_distiller_core',
'components.gyp:dom_distiller_test_support',

# Dependencies of encryptor
'components.gyp:encryptor',
# Dependencies of os_crypt
'components.gyp:os_crypt',

# Dependencies of json_schema
'components.gyp:json_schema',
Expand Down
4 changes: 0 additions & 4 deletions components/encryptor/README

This file was deleted.

28 changes: 14 additions & 14 deletions components/encryptor.gypi → components/os_crypt.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
'targets': [
{
'target_name': 'encryptor',
'target_name': 'os_crypt',
'type': 'static_library',
'include_dirs': [
'..',
Expand All @@ -15,29 +15,29 @@
'../crypto/crypto.gyp:crypto',
],
'sources': [
'encryptor/encryptor_switches.cc',
'encryptor/encryptor_switches.h',
'encryptor/ie7_password_win.cc',
'encryptor/ie7_password_win.h',
'encryptor/keychain_password_mac.h',
'encryptor/keychain_password_mac.mm',
'encryptor/os_crypt.h',
'encryptor/os_crypt_mac.mm',
'encryptor/os_crypt_posix.cc',
'encryptor/os_crypt_win.cc',
'os_crypt/ie7_password_win.cc',
'os_crypt/ie7_password_win.h',
'os_crypt/keychain_password_mac.h',
'os_crypt/keychain_password_mac.mm',
'os_crypt/os_crypt.h',
'os_crypt/os_crypt_mac.mm',
'os_crypt/os_crypt_posix.cc',
'os_crypt/os_crypt_switches.cc',
'os_crypt/os_crypt_switches.h',
'os_crypt/os_crypt_win.cc',
],
'conditions': [
['OS=="mac"', {
'sources!': [
'encryptor/os_crypt_posix.cc',
'os_crypt/os_crypt_posix.cc',
],
}],
],
'target_conditions': [
['OS=="ios"', {
'sources/': [
['include', '^encryptor/keychain_password_mac\\.mm$'],
['include', '^encryptor/os_crypt_mac\\.mm$'],
['include', '^os_crypt/keychain_password_mac\\.mm$'],
['include', '^os_crypt/os_crypt_mac\\.mm$'],
],
}],
],
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions components/os_crypt/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
OSCrypt gives access to simple encryption and decryption of strings.

On systems where available (currently Linux and Mac), this uses system
services to perform the encryption/decryption.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/encryptor/ie7_password_win.h"
#include "components/os_crypt/ie7_password_win.h"

#include <wincrypt.h>
#include <string>
Expand Down
Loading

0 comments on commit c523d20

Please sign in to comment.