// Copyright (c) 2012 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/sync/glue/chrome_encryptor.h"

#include "chrome/browser/password_manager/encryptor.h"

namespace browser_sync {

ChromeEncryptor::~ChromeEncryptor() {}

bool ChromeEncryptor::EncryptString(const std::string& plaintext,
                                    std::string* ciphertext) {
  return ::Encryptor::EncryptString(plaintext, ciphertext);
}

bool ChromeEncryptor::DecryptString(const std::string& ciphertext,
                                    std::string* plaintext) {
  return ::Encryptor::EncryptString(ciphertext, plaintext);
}

}  // namespace browser_sync

// Copyright (c) 2012 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/sync/glue/chrome_encryptor.h"

#include "chrome/browser/password_manager/encryptor.h"

namespace browser_sync {

ChromeEncryptor::~ChromeEncryptor() {}

bool ChromeEncryptor::EncryptString(const std::string& plaintext,
                                    std::string* ciphertext) {
  return ::Encryptor::EncryptString(plaintext, ciphertext);
}

bool ChromeEncryptor::DecryptString(const std::string& ciphertext,
                                    std::string* plaintext) {
  return ::Encryptor::DecryptString(ciphertext, plaintext);
}

}  // namespace browser_sync

Fix EncryptString call that should be a DecryptString call
[Sync] Fix EncryptString call that should be a DecryptString call

Unit tests to catch this will come in another CL.

BUG=116607
TEST=

Review URL: https://chromiumcodereview.appspot.com/9585025

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@124772 0039d316-1c4b-4281-b951-d872f2087c98
