0

Cleanup: Correctly spell success(ful).

TBR=brettw@chromium.org
NOPRESUBMIT=true

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

Cr-Commit-Position: refs/heads/master@{#361166}
This commit is contained in:
thestig
2015-11-23 12:18:11 -08:00
committed by Commit bot
parent 7367b626db
commit 259626c7ca
67 changed files with 129 additions and 130 deletions
ash/content/display
base
android
java
src
org
debug
chrome
components
content
courgette
crypto
gin
ios
media
net
pdf
ppapi
printing/backend
rlz/lib
sandbox/win/src
sync
third_party/WebKit
tools/metrics/histograms

@ -616,7 +616,7 @@ TEST_F(ScreenOrientationControllerTest, InternalDisplayNotAvailableAtStartup) {
EXPECT_TRUE(RotationLocked()); EXPECT_TRUE(RotationLocked());
} }
// Verifies rotating an inactive Display is sucessful. // Verifies rotating an inactive Display is successful.
TEST_F(ScreenOrientationControllerTest, RotateInactiveDisplay) { TEST_F(ScreenOrientationControllerTest, RotateInactiveDisplay) {
const int64 kInternalDisplayId = 9; const int64 kInternalDisplayId = 9;
const int64 kExternalDisplayId = 10; const int64 kExternalDisplayId = 10;

@ -57,7 +57,7 @@ public abstract class ContentUriUtils {
* *
* @param context {@link Context} in interest * @param context {@link Context} in interest
* @param uriString the content URI to open * @param uriString the content URI to open
* @return file desciptor upon sucess, or -1 otherwise. * @return file desciptor upon success, or -1 otherwise.
*/ */
@CalledByNative @CalledByNative
public static int openContentUriForRead(Context context, String uriString) { public static int openContentUriForRead(Context context, String uriString) {

@ -473,7 +473,7 @@ class SandboxSymbolizeHelper {
} }
// Returns a O_RDONLY file descriptor for |file_path| if it was opened // Returns a O_RDONLY file descriptor for |file_path| if it was opened
// sucessfully during the initialization. The file is repositioned at // successfully during the initialization. The file is repositioned at
// offset 0. // offset 0.
// IMPORTANT: This function must be async-signal-safe because it can be // IMPORTANT: This function must be async-signal-safe because it can be
// called from a signal handler (symbolizing stack frames for a crash). // called from a signal handler (symbolizing stack frames for a crash).
@ -741,7 +741,7 @@ void StackTrace::OutputToStream(std::ostream* os) const {
namespace internal { namespace internal {
// NOTE: code from sandbox/linux/seccomp-bpf/demo.cc. // NOTE: code from sandbox/linux/seccomp-bpf/demo.cc.
char *itoa_r(intptr_t i, char *buf, size_t sz, int base, size_t padding) { char* itoa_r(intptr_t i, char* buf, size_t sz, int base, size_t padding) {
// Make sure we can write at least one NUL byte. // Make sure we can write at least one NUL byte.
size_t n = 1; size_t n = 1;
if (n > sz) if (n > sz)
@ -752,7 +752,7 @@ char *itoa_r(intptr_t i, char *buf, size_t sz, int base, size_t padding) {
return NULL; return NULL;
} }
char *start = buf; char* start = buf;
uintptr_t j = i; uintptr_t j = i;
@ -771,7 +771,7 @@ char *itoa_r(intptr_t i, char *buf, size_t sz, int base, size_t padding) {
// Loop until we have converted the entire number. Output at least one // Loop until we have converted the entire number. Output at least one
// character (i.e. '0'). // character (i.e. '0').
char *ptr = start; char* ptr = start;
do { do {
// Make sure there is still enough space left in our output buffer. // Make sure there is still enough space left in our output buffer.
if (++n > sz) { if (++n > sz) {

@ -24,7 +24,7 @@ public class ResetDataActivity extends Activity {
/** /**
* The operation succeeded. Note that this value will only be returned for dry runs, because * The operation succeeded. Note that this value will only be returned for dry runs, because
* sucessfully resetting data will kill this process and return * successfully resetting data will kill this process and return
* {@link Activity#RESULT_CANCELED}. * {@link Activity#RESULT_CANCELED}.
*/ */
private static final int RESULT_OK = Activity.RESULT_OK; private static final int RESULT_OK = Activity.RESULT_OK;

@ -98,7 +98,7 @@ public class ExternalDataUseObserver {
/* /*
* {@link #onReportDataUseDone} reports the result of {@link #reportDataUse} to * {@link #onReportDataUseDone} reports the result of {@link #reportDataUse} to
* the native. * the native.
* @param success true if the data report was sucessfully submitted to the external observer. * @param success true if the data report was successfully submitted to the external observer.
*/ */
protected void onReportDataUseDone(boolean success) { protected void onReportDataUseDone(boolean success) {
// Check if native object is destroyed. This may happen at the time of Chromium shutdown. // Check if native object is destroyed. This may happen at the time of Chromium shutdown.

@ -514,7 +514,7 @@ public class DownloadManagerService extends BroadcastReceiver implements
if (downloadInfo.getFilePath() != null) { if (downloadInfo.getFilePath() != null) {
File file = new File(downloadInfo.getFilePath()); File file = new File(downloadInfo.getFilePath());
if (!file.delete()) { if (!file.delete()) {
Log.w(TAG, "Failed to remove the unsucessful download"); Log.w(TAG, "Failed to remove the unsuccessful download");
} }
} }
return INVALID_DOWNLOAD_ID; return INVALID_DOWNLOAD_ID;

@ -1353,7 +1353,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// Setup.exe has determined that we need to run a retention experiment // Setup.exe has determined that we need to run a retention experiment
// and has lauched chrome to show the experiment UI. It is guaranteed that // and has lauched chrome to show the experiment UI. It is guaranteed that
// no other Chrome is currently running as the process singleton was // no other Chrome is currently running as the process singleton was
// sucessfully grabbed above. // successfully grabbed above.
int try_chrome_int; int try_chrome_int;
base::StringToInt(try_chrome, &try_chrome_int); base::StringToInt(try_chrome, &try_chrome_int);
TryChromeDialogView::Result answer = TryChromeDialogView::Show( TryChromeDialogView::Result answer = TryChromeDialogView::Show(

@ -99,7 +99,7 @@ void InitializeChromeElf() {
// Report all successful blacklist interceptions. // Report all successful blacklist interceptions.
ReportSuccessfulBlocks(); ReportSuccessfulBlocks();
// Schedule another task to report all sucessful interceptions later. // Schedule another task to report all successful interceptions later.
// This time delay should be long enough to catch any dlls that attempt to // This time delay should be long enough to catch any dlls that attempt to
// inject after Chrome has started up. // inject after Chrome has started up.
content::BrowserThread::PostDelayedTask( content::BrowserThread::PostDelayedTask(

@ -88,7 +88,7 @@ class EnterpriseEnrollmentHelper {
// auth code to authentication token, then tries to enroll the device with the // auth code to authentication token, then tries to enroll the device with the
// received token. // received token.
// If |fetch_additional_token| is true, the helper fetches an additional token // If |fetch_additional_token| is true, the helper fetches an additional token
// and passes it to the |status_consumer| on successfull enrollment. // and passes it to the |status_consumer| on successful enrollment.
// EnrollUsingAuthCode can be called only once during this object's lifetime, // EnrollUsingAuthCode can be called only once during this object's lifetime,
// and only if neither of EnrollUsing* methods was called before. // and only if neither of EnrollUsing* methods was called before.
virtual void EnrollUsingAuthCode(const std::string& auth_code, virtual void EnrollUsingAuthCode(const std::string& auth_code,

@ -52,7 +52,7 @@ void LoadWhitelistFromDisk(const base::FilePath& whitelist_path,
return; return;
} }
VLOG(0) << "EV whitelist: Sucessfully loaded."; VLOG(0) << "EV whitelist: Successfully loaded.";
packed_ct_ev_whitelist::SetEVCertsWhitelist(new_whitelist); packed_ct_ev_whitelist::SetEVCertsWhitelist(new_whitelist);
} }

@ -42,17 +42,17 @@ class FakeDumpWriter : public WebRtcRtpDumpWriter {
void EndDump(RtpDumpType type, void EndDump(RtpDumpType type,
const EndDumpCallback& finished_callback) override { const EndDumpCallback& finished_callback) override {
bool incoming_sucess = end_dump_success_; bool incoming_success = end_dump_success_;
bool outgoing_success = end_dump_success_; bool outgoing_success = end_dump_success_;
if (type == RTP_DUMP_INCOMING) if (type == RTP_DUMP_INCOMING)
outgoing_success = false; outgoing_success = false;
else if (type == RTP_DUMP_OUTGOING) else if (type == RTP_DUMP_OUTGOING)
incoming_sucess = false; incoming_success = false;
base::ThreadTaskRunnerHandle::Get()->PostTask( base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, FROM_HERE,
base::Bind(finished_callback, incoming_sucess, outgoing_success)); base::Bind(finished_callback, incoming_success, outgoing_success));
} }
private: private:

@ -42,7 +42,7 @@ std::string RemoveAccountIdPrefix(const std::string& prefixed_account_id) {
// This class sends a request to GAIA to revoke the given refresh token from // This class sends a request to GAIA to revoke the given refresh token from
// the server. This is a best effort attempt only. This class deletes itself // the server. This is a best effort attempt only. This class deletes itself
// when done sucessfully or otherwise. // when done successfully or otherwise.
class MutableProfileOAuth2TokenServiceDelegate::RevokeServerRefreshToken class MutableProfileOAuth2TokenServiceDelegate::RevokeServerRefreshToken
: public GaiaAuthConsumer { : public GaiaAuthConsumer {
public: public:

@ -79,7 +79,7 @@ class AppShortcutLauncherItemController : public LauncherItemController {
content::WebContents* content); content::WebContents* content);
// Advance to the next item if an owned item is already active. The function // Advance to the next item if an owned item is already active. The function
// will return true if it has sucessfully advanced. // will return true if it has successfully advanced.
bool AdvanceToNextApp(); bool AdvanceToNextApp();
// Returns true if the application is a V2 app. // Returns true if the application is a V2 app.

@ -141,7 +141,7 @@ void OneClickSigninSyncStarter::Initialize(Profile* profile, Browser* browser) {
profile_sync_service->SetSetupInProgress(true); profile_sync_service->SetSetupInProgress(true);
// Make sure the syncing is requested, otherwise the SigninManager // Make sure the syncing is requested, otherwise the SigninManager
// will not be able to complete sucessfully. // will not be able to complete successfully.
sync_driver::SyncPrefs sync_prefs(profile_->GetPrefs()); sync_driver::SyncPrefs sync_prefs(profile_->GetPrefs());
sync_prefs.SetSyncRequested(true); sync_prefs.SetSyncRequested(true);
} }

@ -17,7 +17,7 @@ namespace {
class AutofillQueryXmlParserTest : public testing::Test { class AutofillQueryXmlParserTest : public testing::Test {
public: public:
AutofillQueryXmlParserTest(): upload_required_(USE_UPLOAD_RATES) {}; AutofillQueryXmlParserTest(): upload_required_(USE_UPLOAD_RATES) {}
~AutofillQueryXmlParserTest() override{}; ~AutofillQueryXmlParserTest() override{};
protected: protected:
@ -36,7 +36,7 @@ class AutofillQueryXmlParserTest : public testing::Test {
class AutofillUploadXmlParserTest : public testing::Test { class AutofillUploadXmlParserTest : public testing::Test {
public: public:
AutofillUploadXmlParserTest(): positive_(0), negative_(0) {}; AutofillUploadXmlParserTest(): positive_(0), negative_(0) {}
~AutofillUploadXmlParserTest() override{}; ~AutofillUploadXmlParserTest() override{};
protected: protected:
@ -160,7 +160,7 @@ TEST_F(AutofillQueryXmlParserTest, ParseErrors) {
EXPECT_EQ(NO_SERVER_DATA, field_infos_[0].field_type); EXPECT_EQ(NO_SERVER_DATA, field_infos_[0].field_type);
} }
// Test successfull upload response. // Test successful upload response.
TEST_F(AutofillUploadXmlParserTest, TestSuccessfulResponse) { TEST_F(AutofillUploadXmlParserTest, TestSuccessfulResponse) {
ParseUploadXML("<autofilluploadresponse positiveuploadrate=\"0.5\" " ParseUploadXML("<autofilluploadresponse positiveuploadrate=\"0.5\" "
"negativeuploadrate=\"0.3\"/>", "negativeuploadrate=\"0.3\"/>",

@ -296,7 +296,7 @@ struct QueryURLResult {
// HistoryBackend::GetVisibleVisitCountToHost. // HistoryBackend::GetVisibleVisitCountToHost.
struct VisibleVisitCountToHostResult { struct VisibleVisitCountToHostResult {
// Indicates whether the call to HistoryBackend::GetVisibleVisitCountToHost // Indicates whether the call to HistoryBackend::GetVisibleVisitCountToHost
// was successfull or not. If false, then both |count| and |first_visit| are // was successful or not. If false, then both |count| and |first_visit| are
// undefined. // undefined.
bool success; bool success;
int count; int count;

@ -39,13 +39,13 @@ class PnaclTranslationCache
virtual ~PnaclTranslationCache(); virtual ~PnaclTranslationCache();
// Initialize the translation cache in |cache_dir|. If the return value is // Initialize the translation cache in |cache_dir|. If the return value is
// net::ERR_IO_PENDING, |callback| will be called with a 0 argument on sucess // net::ERR_IO_PENDING, |callback| will be called with a 0 argument on success
// and <0 otherwise. // and <0 otherwise.
int InitOnDisk(const base::FilePath& cache_dir, int InitOnDisk(const base::FilePath& cache_dir,
const CompletionCallback& callback); const CompletionCallback& callback);
// Initialize the translation cache in memory. If the return value is // Initialize the translation cache in memory. If the return value is
// net::ERR_IO_PENDING, |callback| will be called with a 0 argument on sucess // net::ERR_IO_PENDING, |callback| will be called with a 0 argument on success
// and <0 otherwise. // and <0 otherwise.
int InitInMemory(const CompletionCallback& callback); int InitInMemory(const CompletionCallback& callback);

@ -676,7 +676,7 @@ void NaClIPCAdapter::SaveOpenResourceMessage(
return; return;
} }
// The file token was sucessfully resolved. // The file token was successfully resolved.
std::string file_path_str = file_path.AsUTF8Unsafe(); std::string file_path_str = file_path.AsUTF8Unsafe();
base::PlatformFile handle = base::PlatformFile handle =
IPC::PlatformFileForTransitToPlatformFile(ipc_fd); IPC::PlatformFileForTransitToPlatformFile(ipc_fd);

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H #ifndef COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
#define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_
#include <queue> #include <queue>
#include <string> #include <string>
@ -204,7 +204,7 @@ class BluetoothLowEnergyConnection : public Connection,
void ProcessNextWriteRequest(); void ProcessNextWriteRequest();
// Called when the BluetoothGattCharacteristic::RemoteCharacteristicWrite() is // Called when the BluetoothGattCharacteristic::RemoteCharacteristicWrite() is
// sucessfully complete. // successfully complete.
void OnRemoteCharacteristicWritten(bool run_did_send_message_callback); void OnRemoteCharacteristicWritten(bool run_did_send_message_callback);
// Called when there is an error writing to the remote characteristic // Called when there is an error writing to the remote characteristic
@ -306,4 +306,4 @@ class BluetoothLowEnergyConnection : public Connection,
} // namespace proximity_auth } // namespace proximity_auth
#endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CONNECTION_H_

@ -12,7 +12,7 @@ namespace prefs {
const char kCryptAuthDeviceSyncIsRecoveringFromFailure[] = const char kCryptAuthDeviceSyncIsRecoveringFromFailure[] =
"cryptauth.device_sync.is_recovering_from_failure"; "cryptauth.device_sync.is_recovering_from_failure";
// The timestamp of the last successfull CryptAuth device_sync in seconds. // The timestamp of the last successful CryptAuth device_sync in seconds.
const char kCryptAuthDeviceSyncLastSyncTimeSeconds[] = const char kCryptAuthDeviceSyncLastSyncTimeSeconds[] =
"cryptauth.device_sync.last_device_sync_time_seconds"; "cryptauth.device_sync.last_device_sync_time_seconds";
@ -32,7 +32,7 @@ const char kCryptAuthDeviceSyncUnlockKeys[] =
const char kCryptAuthEnrollmentIsRecoveringFromFailure[] = const char kCryptAuthEnrollmentIsRecoveringFromFailure[] =
"cryptauth.enrollment.is_recovering_from_failure"; "cryptauth.enrollment.is_recovering_from_failure";
// The timestamp of the last successfull CryptAuth enrollment in seconds. // The timestamp of the last successful CryptAuth enrollment in seconds.
const char kCryptAuthEnrollmentLastEnrollmentTimeSeconds[] = const char kCryptAuthEnrollmentLastEnrollmentTimeSeconds[] =
"cryptauth.enrollment.last_enrollment_time_seconds"; "cryptauth.enrollment.last_enrollment_time_seconds";
@ -54,4 +54,4 @@ extern const char kCryptAuthGCMRegistrationId[] =
"cryptauth.gcm_registration_id"; "cryptauth.gcm_registration_id";
} // namespace prefs } // namespace prefs
} // proximity_auth } // namespace proximity_auth

@ -137,7 +137,7 @@ class ChildTracingTest : public content::RenderViewTest, public IPC::Listener {
WaitForIPCMessage(TracingHostMsg_ProcessMemoryDumpResponse::ID); WaitForIPCMessage(TracingHostMsg_ProcessMemoryDumpResponse::ID);
EXPECT_NE(nullptr, msg); EXPECT_NE(nullptr, msg);
// Check that the |dump_guid| and the |sucess| fields are properly set. // Check that the |dump_guid| and the |success| fields are properly set.
TracingHostMsg_ProcessMemoryDumpResponse::Param params; TracingHostMsg_ProcessMemoryDumpResponse::Param params;
TracingHostMsg_ProcessMemoryDumpResponse::Read(msg, &params); TracingHostMsg_ProcessMemoryDumpResponse::Read(msg, &params);
const uint64 resp_guid = base::get<0>(params); const uint64 resp_guid = base::get<0>(params);

@ -510,7 +510,7 @@ void TranslateHelper::TranslatePageImpl(int page_seq_no, int count) {
if (!IsTranslateLibReady()) { if (!IsTranslateLibReady()) {
// The library is not ready, try again later, unless we have tried several // The library is not ready, try again later, unless we have tried several
// times unsucessfully already. // times unsuccessfully already.
if (++count >= kMaxTranslateInitCheckAttempts) { if (++count >= kMaxTranslateInitCheckAttempts) {
NotifyBrowserTranslationFailed(TranslateErrors::INITIALIZATION_ERROR); NotifyBrowserTranslationFailed(TranslateErrors::INITIALIZATION_ERROR);
return; return;

@ -64,7 +64,7 @@ class IOSTranslateDriver : public TranslateDriver,
void OpenUrlInNewTab(const GURL& url) override; void OpenUrlInNewTab(const GURL& url) override;
private: private:
// Called when the translation was successfull. // Called when the translation was successful.
void TranslationDidSucceed(const std::string& source_lang, void TranslationDidSucceed(const std::string& source_lang,
const std::string& target_lang, const std::string& target_lang,
int page_seq_no, int page_seq_no,

@ -67,7 +67,7 @@ class MHTMLGenerationTest : public ContentBrowserTest {
// Tests that generating a MHTML does create contents. // Tests that generating a MHTML does create contents.
// Note that the actual content of the file is not tested, the purpose of this // Note that the actual content of the file is not tested, the purpose of this
// test is to ensure we were successfull in creating the MHTML data from the // test is to ensure we were successful in creating the MHTML data from the
// renderer. // renderer.
IN_PROC_BROWSER_TEST_F(MHTMLGenerationTest, GenerateMHTML) { IN_PROC_BROWSER_TEST_F(MHTMLGenerationTest, GenerateMHTML) {
base::FilePath path(temp_dir_.path()); base::FilePath path(temp_dir_.path());

@ -170,7 +170,7 @@ bool NetworkManagerWlanApi::GetAccessPointData(
++fail_count; ++fail_count;
} }
} }
// At least one successfull scan overrides any other adapter reporting error. // At least one successful scan overrides any other adapter reporting error.
return success_count || fail_count == 0; return success_count || fail_count == 0;
} }

@ -261,7 +261,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
// List of blob files being newly written as part of this transaction. // List of blob files being newly written as part of this transaction.
// These will be added to the primary blob journal prior to commit, then // These will be added to the primary blob journal prior to commit, then
// removed after a sucessful commit. // removed after a successful commit.
BlobJournalType blobs_to_write_; BlobJournalType blobs_to_write_;
// List of blob files being deleted as part of this transaction. These will // List of blob files being deleted as part of this transaction. These will

@ -150,7 +150,7 @@ void FindServiceWorkerRegistration(
// This LOG(INFO) deliberately exists to help track down the cause of // This LOG(INFO) deliberately exists to help track down the cause of
// https://crbug.com/534537, where notifications sometimes do not react to // https://crbug.com/534537, where notifications sometimes do not react to
// the user clicking on them. It should be removed once that's fixed. // the user clicking on them. It should be removed once that's fixed.
LOG(INFO) << "Lookup for ServiceWoker Registration: sucesss:" << success LOG(INFO) << "Lookup for ServiceWoker Registration: success:" << success
<< " action_index: " << action_index; << " action_index: " << action_index;
#endif #endif
if (!success) { if (!success) {

@ -167,7 +167,7 @@ void P2PSocketHostTcpBase::OnConnected(int result) {
} else { } else {
// If we are not doing TLS, we are ready to send data now. // If we are not doing TLS, we are ready to send data now.
// In case of TLS, SignalConnect will be sent only after TLS handshake is // In case of TLS, SignalConnect will be sent only after TLS handshake is
// successfull. So no buffering will be done at socket handlers if any // successful. So no buffering will be done at socket handlers if any
// packets sent before that by the application. // packets sent before that by the application.
OnOpen(); OnOpen();
} }

@ -23,7 +23,7 @@ namespace content {
// //
// If Attachment Execution Services is unavailable, then this function will // If Attachment Execution Services is unavailable, then this function will
// attempt to manually annotate the file with security zone information. A // attempt to manually annotate the file with security zone information. A
// failure code will be returned in this case even if the file is sucessfully // failure code will be returned in this case even if the file is successfully
// annotated. // annotated.
// //
// IAE::Save() will delete the file if it was found to be blocked by local // IAE::Save() will delete the file if it was found to be blocked by local

@ -109,7 +109,7 @@ std::set<BluetoothUUID> GetUUIDs(
std::set<BluetoothUUID> result; std::set<BluetoothUUID> result;
filter->GetUUIDs(result); filter->GetUUIDs(result);
return result; return result;
}; }
// Notifies the adapter's observers that the services have been discovered. // Notifies the adapter's observers that the services have been discovered.
void NotifyServicesDiscovered(MockBluetoothAdapter* adapter, void NotifyServicesDiscovered(MockBluetoothAdapter* adapter,
@ -128,35 +128,35 @@ LayoutTestBluetoothAdapterProvider::GetBluetoothAdapter(
const std::string& fake_adapter_name) { const std::string& fake_adapter_name) {
if (fake_adapter_name == "BaseAdapter") if (fake_adapter_name == "BaseAdapter")
return GetBaseAdapter(); return GetBaseAdapter();
else if (fake_adapter_name == "NotPresentAdapter") if (fake_adapter_name == "NotPresentAdapter")
return GetNotPresentAdapter(); return GetNotPresentAdapter();
else if (fake_adapter_name == "NotPoweredAdapter") if (fake_adapter_name == "NotPoweredAdapter")
return GetNotPoweredAdapter(); return GetNotPoweredAdapter();
else if (fake_adapter_name == "ScanFilterCheckingAdapter") if (fake_adapter_name == "ScanFilterCheckingAdapter")
return GetScanFilterCheckingAdapter(); return GetScanFilterCheckingAdapter();
else if (fake_adapter_name == "EmptyAdapter") if (fake_adapter_name == "EmptyAdapter")
return GetEmptyAdapter(); return GetEmptyAdapter();
else if (fake_adapter_name == "FailStartDiscoveryAdapter") if (fake_adapter_name == "FailStartDiscoveryAdapter")
return GetFailStartDiscoveryAdapter(); return GetFailStartDiscoveryAdapter();
else if (fake_adapter_name == "GlucoseHeartRateAdapter") if (fake_adapter_name == "GlucoseHeartRateAdapter")
return GetGlucoseHeartRateAdapter(); return GetGlucoseHeartRateAdapter();
else if (fake_adapter_name == "UnicodeDeviceAdapter") if (fake_adapter_name == "UnicodeDeviceAdapter")
return GetUnicodeDeviceAdapter(); return GetUnicodeDeviceAdapter();
else if (fake_adapter_name == "MissingServiceHeartRateAdapter") if (fake_adapter_name == "MissingServiceHeartRateAdapter")
return GetMissingServiceHeartRateAdapter(); return GetMissingServiceHeartRateAdapter();
else if (fake_adapter_name == "MissingCharacteristicHeartRateAdapter") if (fake_adapter_name == "MissingCharacteristicHeartRateAdapter")
return GetMissingCharacteristicHeartRateAdapter(); return GetMissingCharacteristicHeartRateAdapter();
else if (fake_adapter_name == "HeartRateAdapter") if (fake_adapter_name == "HeartRateAdapter")
return GetHeartRateAdapter(); return GetHeartRateAdapter();
else if (fake_adapter_name == "FailingConnectionsAdapter") if (fake_adapter_name == "FailingConnectionsAdapter")
return GetFailingConnectionsAdapter(); return GetFailingConnectionsAdapter();
else if (fake_adapter_name == "FailingGATTOperationsAdapter") if (fake_adapter_name == "FailingGATTOperationsAdapter")
return GetFailingGATTOperationsAdapter(); return GetFailingGATTOperationsAdapter();
else if (fake_adapter_name == "SecondDiscoveryFindsHeartRateAdapter") if (fake_adapter_name == "SecondDiscoveryFindsHeartRateAdapter")
return GetSecondDiscoveryFindsHeartRateAdapter(); return GetSecondDiscoveryFindsHeartRateAdapter();
else if (fake_adapter_name == "DelayedServicesDiscoveryAdapter") if (fake_adapter_name == "DelayedServicesDiscoveryAdapter")
return GetDelayedServicesDiscoveryAdapter(); return GetDelayedServicesDiscoveryAdapter();
else if (fake_adapter_name == "") if (fake_adapter_name.empty())
return nullptr; return nullptr;
if (base::StartsWith(fake_adapter_name, "PowerValueAdapter", if (base::StartsWith(fake_adapter_name, "PowerValueAdapter",
@ -194,7 +194,7 @@ LayoutTestBluetoothAdapterProvider::GetBluetoothAdapter(
} }
NOTREACHED() << fake_adapter_name; NOTREACHED() << fake_adapter_name;
return NULL; return nullptr;
} }
// Adapters // Adapters
@ -697,7 +697,7 @@ LayoutTestBluetoothAdapterProvider::GetGenericAccessService(
// Write response. // Write response.
ON_CALL(*device_name, WriteRemoteCharacteristic(_, _, _)) ON_CALL(*device_name, WriteRemoteCharacteristic(_, _, _))
.WillByDefault(RunCallback<1 /* sucess callback */>()); .WillByDefault(RunCallback<1 /* success callback */>());
generic_access->AddMockCharacteristic(device_name.Pass()); generic_access->AddMockCharacteristic(device_name.Pass());

@ -93,7 +93,7 @@ Status GenerateEnsemblePatch(SourceStream* old, SourceStream* target,
// Detects the type of an executable file, and it's length. The length // Detects the type of an executable file, and it's length. The length
// may be slightly smaller than some executables (like ELF), but will include // may be slightly smaller than some executables (like ELF), but will include
// all bytes the courgette algorithm has special benefit for. // all bytes the courgette algorithm has special benefit for.
// On sucess: // On success:
// Fill in type and detected_length, and return C_OK. // Fill in type and detected_length, and return C_OK.
// On failure: // On failure:
// Fill in type with UNKNOWN, detected_length with 0, and // Fill in type with UNKNOWN, detected_length with 0, and

@ -38,7 +38,7 @@ ALG_ID GetAESAlgIDForKeySize(size_t key_size_in_bits) {
NOTREACHED(); NOTREACHED();
return 0; return 0;
} }
}; }
// Imports a raw/plaintext key of |key_size| stored in |*key_data| into a new // Imports a raw/plaintext key of |key_size| stored in |*key_data| into a new
// key created for the specified |provider|. |alg| contains the algorithm of // key created for the specified |provider|. |alg| contains the algorithm of
@ -83,7 +83,7 @@ bool ImportRawKey(HCRYPTPROV provider,
CryptImportKey(provider, actual_key, actual_size, 0, flags, &unsafe_key); CryptImportKey(provider, actual_key, actual_size, 0, flags, &unsafe_key);
// Clean up the temporary copy of key, regardless of whether it was imported // Clean up the temporary copy of key, regardless of whether it was imported
// sucessfully or not. // successfully or not.
SecureZeroMemory(actual_key, actual_size); SecureZeroMemory(actual_key, actual_size);
if (!ok) if (!ok)

@ -80,7 +80,7 @@ TEST_F(ConverterTest, Int32) {
struct { struct {
v8::Local<v8::Value> input; v8::Local<v8::Value> input;
bool expect_sucess; bool expect_success;
int expected_result; int expected_result;
} test_data_from[] = { } test_data_from[] = {
{ Boolean::New(instance_->isolate(), false).As<Value>(), false, 0 }, { Boolean::New(instance_->isolate(), false).As<Value>(), false, 0 },
@ -102,7 +102,7 @@ TEST_F(ConverterTest, Int32) {
int32_t result = std::numeric_limits<int32_t>::min(); int32_t result = std::numeric_limits<int32_t>::min();
bool success = Converter<int32_t>::FromV8(instance_->isolate(), bool success = Converter<int32_t>::FromV8(instance_->isolate(),
test_data_from[i].input, &result); test_data_from[i].input, &result);
EXPECT_EQ(test_data_from[i].expect_sucess, success) << i; EXPECT_EQ(test_data_from[i].expect_success, success) << i;
if (success) if (success)
EXPECT_EQ(test_data_from[i].expected_result, result) << i; EXPECT_EQ(test_data_from[i].expected_result, result) << i;
} }

@ -50,7 +50,7 @@ const NSTimeInterval kRecurringPumpDelay = .01;
// |completionHandler| can be nil. // |completionHandler| can be nil.
- (void)startPumpingWithCompletionHandler:(ProceduralBlock)completionHandler; - (void)startPumpingWithCompletionHandler:(ProceduralBlock)completionHandler;
// Gives find in page more time to complete. Calls |completionHandler| with // Gives find in page more time to complete. Calls |completionHandler| with
// a BOOL indicating if the find operation was successfull. |completionHandler| // a BOOL indicating if the find operation was successful. |completionHandler|
// can be nil. // can be nil.
- (void)pumpFindStringInPageWithCompletionHandler: - (void)pumpFindStringInPageWithCompletionHandler:
(void (^)(BOOL))completionHandler; (void (^)(BOOL))completionHandler;

@ -47,7 +47,7 @@ extern FindInPageEntry FindInPageEntryZero;
completionHandler:(void (^)(BOOL, CGPoint))completionHandler; completionHandler:(void (^)(BOOL, CGPoint))completionHandler;
// Searches for more matches. Calls |completionHandler| with a success BOOL and // Searches for more matches. Calls |completionHandler| with a success BOOL and
// scroll position if pumping was successfull. If the pumping was unsuccessfull // scroll position if pumping was successful. If the pumping was unsuccessfull
// another pumping call maybe required. |completionHandler| cannot be nil. // another pumping call maybe required. |completionHandler| cannot be nil.
// TODO(shreyasv): Consider folding the logic for re-pumping into this class // TODO(shreyasv): Consider folding the logic for re-pumping into this class
// instead of having clients having to do it. // instead of having clients having to do it.

@ -60,7 +60,7 @@ const FindInPageEntry kFindInPageEntryZero = {{0.0, 0.0}, 0};
- (BOOL)processFindInPageResult:(NSString*)result - (BOOL)processFindInPageResult:(NSString*)result
scrollPosition:(CGPoint*)point; scrollPosition:(CGPoint*)point;
// Updates find in page model with results. Calls |completionHandler| with the // Updates find in page model with results. Calls |completionHandler| with the
// the result of the processing and the new scroll position if successfull. If // the result of the processing and the new scroll position if successful. If
// |completionHandler| is called with NO, further pumping is required. // |completionHandler| is called with NO, further pumping is required.
// |completionHandler| cannot be nil. // |completionHandler| cannot be nil.
- (void)processFindInPagePumpResult:(NSString*)result - (void)processFindInPagePumpResult:(NSString*)result

@ -153,7 +153,7 @@ TEST_F(BrowsingDataStoreTest, MakeActiveAndInactiveOperations) {
EXPECT_EQ(0U, [observer modeChangeCount]); EXPECT_EQ(0U, [observer modeChangeCount]);
__block int callbacks_received_count = 0; __block int callbacks_received_count = 0;
void (^unsucessfullCallback)(BOOL) = ^(BOOL success) { void (^unsuccessfullCallback)(BOOL) = ^(BOOL success) {
ASSERT_TRUE([NSThread isMainThread]); ASSERT_TRUE([NSThread isMainThread]);
++callbacks_received_count; ++callbacks_received_count;
BrowsingDataStoreMode mode = [browsing_data_store_ mode]; BrowsingDataStoreMode mode = [browsing_data_store_ mode];
@ -163,20 +163,20 @@ TEST_F(BrowsingDataStoreTest, MakeActiveAndInactiveOperations) {
[browsing_data_store_ makeActiveWithCompletionHandler:^(BOOL success) { [browsing_data_store_ makeActiveWithCompletionHandler:^(BOOL success) {
EXPECT_EQ(0, callbacks_received_count); EXPECT_EQ(0, callbacks_received_count);
unsucessfullCallback(success); unsuccessfullCallback(success);
}]; }];
EXPECT_EQ(CHANGING, [browsing_data_store_ mode]); EXPECT_EQ(CHANGING, [browsing_data_store_ mode]);
EXPECT_EQ(1U, [observer modeChangeCount]); EXPECT_EQ(1U, [observer modeChangeCount]);
[browsing_data_store_ makeInactiveWithCompletionHandler:^(BOOL success) { [browsing_data_store_ makeInactiveWithCompletionHandler:^(BOOL success) {
EXPECT_EQ(1, callbacks_received_count); EXPECT_EQ(1, callbacks_received_count);
unsucessfullCallback(success); unsuccessfullCallback(success);
}]; }];
EXPECT_EQ(CHANGING, [browsing_data_store_ mode]); EXPECT_EQ(CHANGING, [browsing_data_store_ mode]);
[browsing_data_store_ makeActiveWithCompletionHandler:^(BOOL success) { [browsing_data_store_ makeActiveWithCompletionHandler:^(BOOL success) {
EXPECT_EQ(2, callbacks_received_count); EXPECT_EQ(2, callbacks_received_count);
unsucessfullCallback(success); unsuccessfullCallback(success);
}]; }];
EXPECT_EQ(CHANGING, [browsing_data_store_ mode]); EXPECT_EQ(CHANGING, [browsing_data_store_ mode]);

@ -164,7 +164,7 @@ class AUAudioInputStream : public AgcAudioStream<AudioInputStream> {
// array as soon as a frame of the desired buffer size has been recorded. // array as soon as a frame of the desired buffer size has been recorded.
scoped_ptr<uint8[]> audio_data_buffer_; scoped_ptr<uint8[]> audio_data_buffer_;
// True after successfull Start(), false after successful Stop(). // True after successful Start(), false after successful Stop().
bool started_; bool started_;
// Fixed capture hardware latency in frames. // Fixed capture hardware latency in frames.

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ #ifndef MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_
#define MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ #define MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -32,7 +32,7 @@ class VideoCaptureDeviceMac;
// device names are usually obtained via VideoCaptureDevice::GetDeviceNames() // device names are usually obtained via VideoCaptureDevice::GetDeviceNames()
// method. This method will also configure all device properties except those in // method. This method will also configure all device properties except those in
// setCaptureHeight:width:frameRate. If |deviceId| is nil, capture is stopped // setCaptureHeight:width:frameRate. If |deviceId| is nil, capture is stopped
// and all potential configuration is torn down. Returns YES on sucess, NO // and all potential configuration is torn down. Returns YES on success, NO
// otherwise. // otherwise.
- (BOOL)setCaptureDevice:(NSString*)deviceId; - (BOOL)setCaptureDevice:(NSString*)deviceId;
@ -41,7 +41,7 @@ class VideoCaptureDeviceMac;
width:(int)width width:(int)width
frameRate:(float)frameRate; frameRate:(float)frameRate;
// Starts video capturing, registers observers. Returns YES on sucess, NO // Starts video capturing, registers observers. Returns YES on success, NO
// otherwise. // otherwise.
- (BOOL)startCapture; - (BOOL)startCapture;
@ -50,4 +50,4 @@ class VideoCaptureDeviceMac;
@end @end
#endif // MEDIA_VIDEO_CAPTURE_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_ #endif // MEDIA_CAPTURE_VIDEO_MAC_PLATFORM_VIDEO_CAPTURING_MAC_H_

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_ #ifndef MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_
#define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_ #define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -98,7 +98,7 @@ class VideoCaptureDeviceMac;
// the deviceId is known, the library objects are created if needed and // the deviceId is known, the library objects are created if needed and
// connected for the capture, and a by default resolution is set. If deviceId is // connected for the capture, and a by default resolution is set. If deviceId is
// nil, then the eventual capture is stopped and library objects are // nil, then the eventual capture is stopped and library objects are
// disconnected. Returns YES on sucess, NO otherwise. This method should not be // disconnected. Returns YES on success, NO otherwise. This method should not be
// called during capture. // called during capture.
- (BOOL)setCaptureDevice:(NSString*)deviceId; - (BOOL)setCaptureDevice:(NSString*)deviceId;
@ -111,7 +111,7 @@ class VideoCaptureDeviceMac;
// Starts video capturing and register the notification listeners. Must be // Starts video capturing and register the notification listeners. Must be
// called after setCaptureDevice:, and, eventually, also after // called after setCaptureDevice:, and, eventually, also after
// setCaptureHeight:width:frameRate:. Returns YES on sucess, NO otherwise. // setCaptureHeight:width:frameRate:. Returns YES on success, NO otherwise.
- (BOOL)startCapture; - (BOOL)startCapture;
// Stops video capturing and stops listening to notifications. // Stops video capturing and stops listening to notifications.
@ -119,4 +119,4 @@ class VideoCaptureDeviceMac;
@end @end
#endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_ #endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_AVFOUNDATION_MAC_H_

@ -5,8 +5,8 @@
// VideoCaptureDeviceQTKit implements all QTKit related code for // VideoCaptureDeviceQTKit implements all QTKit related code for
// communicating with a QTKit capture device. // communicating with a QTKit capture device.
#ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_ #ifndef MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_
#define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_ #define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -54,7 +54,7 @@ class VideoCaptureDeviceMac;
// Set the frame receiver. // Set the frame receiver.
- (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver; - (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
// Sets which capture device to use. Returns YES on sucess, NO otherwise. // Sets which capture device to use. Returns YES on success, NO otherwise.
- (BOOL)setCaptureDevice:(NSString*)deviceId; - (BOOL)setCaptureDevice:(NSString*)deviceId;
// Configures the capture properties. // Configures the capture properties.
@ -62,7 +62,7 @@ class VideoCaptureDeviceMac;
width:(int)width width:(int)width
frameRate:(float)frameRate; frameRate:(float)frameRate;
// Start video capturing. Returns YES on sucess, NO otherwise. // Start video capturing. Returns YES on success, NO otherwise.
- (BOOL)startCapture; - (BOOL)startCapture;
// Stops video capturing. // Stops video capturing.
@ -73,4 +73,4 @@ class VideoCaptureDeviceMac;
@end @end
#endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_ #endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_

@ -183,7 +183,7 @@ class VideoSenderTest : public ::testing::Test {
} }
// If |external| is true then external video encoder (VEA) is used. // If |external| is true then external video encoder (VEA) is used.
// |expect_init_sucess| is true if initialization is expected to succeed. // |expect_init_success| is true if initialization is expected to succeed.
void InitEncoder(bool external, bool expect_init_success) { void InitEncoder(bool external, bool expect_init_success) {
VideoSenderConfig video_config = GetDefaultVideoSenderConfig(); VideoSenderConfig video_config = GetDefaultVideoSenderConfig();
video_config.use_external_encoder = external; video_config.use_external_encoder = external;
@ -253,6 +253,7 @@ class VideoSenderTest : public ::testing::Test {
int last_pixel_value_; int last_pixel_value_;
base::TimeTicks first_frame_timestamp_; base::TimeTicks first_frame_timestamp_;
private:
DISALLOW_COPY_AND_ASSIGN(VideoSenderTest); DISALLOW_COPY_AND_ASSIGN(VideoSenderTest);
}; };

@ -118,8 +118,8 @@ class VpxVideoDecoder::MemoryPool
// being used by libvpx. Parameters: // being used by libvpx. Parameters:
// |user_priv| Private data passed to libvpx (pointer to memory pool). // |user_priv| Private data passed to libvpx (pointer to memory pool).
// |fb| Pointer to the frame buffer that's being released. // |fb| Pointer to the frame buffer that's being released.
static int32 ReleaseVP9FrameBuffer(void *user_priv, static int32 ReleaseVP9FrameBuffer(void* user_priv,
vpx_codec_frame_buffer *fb); vpx_codec_frame_buffer* fb);
// Generates a "no_longer_needed" closure that holds a reference to this pool. // Generates a "no_longer_needed" closure that holds a reference to this pool.
base::Closure CreateFrameCallback(void* fb_priv_data); base::Closure CreateFrameCallback(void* fb_priv_data);
@ -216,7 +216,8 @@ int32 VpxVideoDecoder::MemoryPool::GetVP9FrameBuffer(
} }
int32 VpxVideoDecoder::MemoryPool::ReleaseVP9FrameBuffer( int32 VpxVideoDecoder::MemoryPool::ReleaseVP9FrameBuffer(
void *user_priv, vpx_codec_frame_buffer *fb) { void* user_priv,
vpx_codec_frame_buffer* fb) {
DCHECK(user_priv); DCHECK(user_priv);
DCHECK(fb); DCHECK(fb);
VP9FrameBuffer* frame_buffer = static_cast<VP9FrameBuffer*>(fb->priv); VP9FrameBuffer* frame_buffer = static_cast<VP9FrameBuffer*>(fb->priv);
@ -351,7 +352,7 @@ void VpxVideoDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer,
bound_decode_cb.Run(kDecodeError); bound_decode_cb.Run(kDecodeError);
return; return;
} }
// We might get a successfull VpxDecode but not a frame if only a partial // We might get a successful VpxDecode but not a frame if only a partial
// decode happened. // decode happened.
if (video_frame.get()) if (video_frame.get())
output_cb_.Run(video_frame); output_cb_.Run(video_frame);

@ -111,7 +111,7 @@ NET_EXPORT bool ParseUTCTimeRelaxed(const Input& in,
// Reads a DER-encoded ASN.1 GeneralizedTime value from |in| and puts the // Reads a DER-encoded ASN.1 GeneralizedTime value from |in| and puts the
// resulting value in |out|, returning true if the GeneralizedTime could // resulting value in |out|, returning true if the GeneralizedTime could
// be parsed sucessfully. This function is even more restrictive than the // be parsed successfully. This function is even more restrictive than the
// DER rules - it follows the rules from RFC5280, which does not allow for // DER rules - it follows the rules from RFC5280, which does not allow for
// fractional seconds. // fractional seconds.
NET_EXPORT bool ParseGeneralizedTime(const Input& in, NET_EXPORT bool ParseGeneralizedTime(const Input& in,

@ -38,7 +38,7 @@ class ThreadedSSLPrivateKey : public SSLPrivateKey {
virtual std::vector<SSLPrivateKey::Hash> GetDigestPreferences() = 0; virtual std::vector<SSLPrivateKey::Hash> GetDigestPreferences() = 0;
virtual size_t GetMaxSignatureLengthInBytes() = 0; virtual size_t GetMaxSignatureLengthInBytes() = 0;
// Signs |input| as a digest of type |hash|. On sucess it returns OK and // Signs |input| as a digest of type |hash|. On success it returns OK and
// sets |signature| to the resulting signature. Otherwise it returns a net // sets |signature| to the resulting signature. Otherwise it returns a net
// error code. It will only be called on the task runner passed to the // error code. It will only be called on the task runner passed to the
// owning ThreadedSSLPrivateKey. // owning ThreadedSSLPrivateKey.

@ -47,7 +47,7 @@ class DocumentLoader {
const std::string& url, const std::string& url,
const std::string& headers); const std::string& headers);
// Data access interface. Return true is sucessful. // Data access interface. Return true is successful.
bool GetBlock(uint32_t position, uint32_t size, void* buf) const; bool GetBlock(uint32_t position, uint32_t size, void* buf) const;
// Data availability interface. Return true data avaialble. // Data availability interface. Return true data avaialble.

@ -84,7 +84,7 @@ interface PPB_Compositor {
* of a module. * of a module.
* *
* @return A <code>PP_Resource</code> containing the compositor resource if * @return A <code>PP_Resource</code> containing the compositor resource if
* sucessful or 0 otherwise. * successful or 0 otherwise.
*/ */
PP_Resource Create([in] PP_Instance instance); PP_Resource Create([in] PP_Instance instance);
@ -102,7 +102,7 @@ interface PPB_Compositor {
* a compositor layer resource. * a compositor layer resource.
* *
* @return A <code>PP_Resource</code> containing the compositor layer * @return A <code>PP_Resource</code> containing the compositor layer
* resource if sucessful or 0 otherwise. * resource if successful or 0 otherwise.
*/ */
PP_Resource AddLayer([in] PP_Resource compositor); PP_Resource AddLayer([in] PP_Resource compositor);

@ -98,7 +98,7 @@ struct PPB_Compositor_0_1 { /* dev */
* of a module. * of a module.
* *
* @return A <code>PP_Resource</code> containing the compositor resource if * @return A <code>PP_Resource</code> containing the compositor resource if
* sucessful or 0 otherwise. * successful or 0 otherwise.
*/ */
PP_Resource (*Create)(PP_Instance instance); PP_Resource (*Create)(PP_Instance instance);
/** /**
@ -115,7 +115,7 @@ struct PPB_Compositor_0_1 { /* dev */
* a compositor layer resource. * a compositor layer resource.
* *
* @return A <code>PP_Resource</code> containing the compositor layer * @return A <code>PP_Resource</code> containing the compositor layer
* resource if sucessful or 0 otherwise. * resource if successful or 0 otherwise.
*/ */
PP_Resource (*AddLayer)(PP_Resource compositor); PP_Resource (*AddLayer)(PP_Resource compositor);
/** /**

@ -643,7 +643,7 @@ TEST_F(VideoEncoderResourceTest, InitializeFailure) {
TEST_F(VideoEncoderResourceTest, InitializeSuccess) { TEST_F(VideoEncoderResourceTest, InitializeSuccess) {
{ {
// Verify the initialize callback is called when initialization is // Verify the initialize callback is called when initialization is
// successfull. // successful.
LockingResourceReleaser encoder(CreateEncoder()); LockingResourceReleaser encoder(CreateEncoder());
ResourceMessageCallParams params; ResourceMessageCallParams params;
PP_Size size = kFrameSize; PP_Size size = kFrameSize;

@ -4,8 +4,6 @@
#include "printing/backend/print_backend.h" #include "printing/backend/print_backend.h"
#include "build/build_config.h"
#include <dlfcn.h> #include <dlfcn.h>
#include <errno.h> #include <errno.h>
#include <pthread.h> #include <pthread.h>
@ -269,7 +267,8 @@ base::FilePath PrintBackendCUPS::GetPPD(const char* name) {
// here. // here.
// Note: After looking at CUPS sources, it looks like non-blocking // Note: After looking at CUPS sources, it looks like non-blocking
// connection will timeout after 10 seconds of no data period. And it will // connection will timeout after 10 seconds of no data period. And it will
// return the same way as if data was completely and sucessfully downloaded. // return the same way as if data was completely and successfully
// downloaded.
HttpConnectionCUPS http(print_server_url_, cups_encryption_); HttpConnectionCUPS http(print_server_url_, cups_encryption_);
http.SetBlocking(blocking_); http.SetBlocking(blocking_);
ppd_file_path = cupsGetPPD2(http.http(), name); ppd_file_path = cupsGetPPD2(http.http(), name);

@ -282,7 +282,7 @@ bool RLZ_LIB_API CreateMachineState(void);
// Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ
// initalization. // initalization.
// Access: HKLM write, or // Access: HKLM write, or
// HKCU read if rlz_lib::CreateMachineState() has been sucessfully called. // HKCU read if rlz_lib::CreateMachineState() has been successfully called.
bool RLZ_LIB_API SetMachineDealCode(const char* dcc); bool RLZ_LIB_API SetMachineDealCode(const char* dcc);
// Get the DCC cgi argument string to append to a daily ping. // Get the DCC cgi argument string to append to a daily ping.
@ -337,7 +337,7 @@ bool RLZ_LIB_API SetMachineDealCodeFromPingResponse(const char* response);
// the time skip check is specific to each supplementary brand. // the time skip check is specific to each supplementary brand.
class SupplementaryBranding { class SupplementaryBranding {
public: public:
SupplementaryBranding(const char* brand); explicit SupplementaryBranding(const char* brand);
~SupplementaryBranding(); ~SupplementaryBranding();
static const std::string& GetBrand(); static const std::string& GetBrand();

@ -56,7 +56,7 @@ class AppContainerAttributes {
ResultCode CreateAppContainer(const base::string16& sid, ResultCode CreateAppContainer(const base::string16& sid,
const base::string16& name); const base::string16& name);
// Deletes an AppContainer previously created with a successfull call to // Deletes an AppContainer previously created with a successful call to
// CreateAppContainer. // CreateAppContainer.
ResultCode DeleteAppContainer(const base::string16& sid); ResultCode DeleteAppContainer(const base::string16& sid);

@ -719,7 +719,6 @@ TEST_F(SyncSchedulerTest, ThrottlingDoesThrottle) {
PumpLoop(); PumpLoop();
ASSERT_EQ(0, ready_counter.times_called()); ASSERT_EQ(0, ready_counter.times_called());
ASSERT_EQ(1, retry_counter.times_called()); ASSERT_EQ(1, retry_counter.times_called());
} }
TEST_F(SyncSchedulerTest, ThrottlingExpiresFromPoll) { TEST_F(SyncSchedulerTest, ThrottlingExpiresFromPoll) {
@ -1084,7 +1083,6 @@ TEST_F(SyncSchedulerTest, BackoffDropsJobs) {
PumpLoop(); PumpLoop();
ASSERT_EQ(0, ready_counter.times_called()); ASSERT_EQ(0, ready_counter.times_called());
ASSERT_EQ(1, retry_counter.times_called()); ASSERT_EQ(1, retry_counter.times_called());
} }
// Test that backoff is shaping traffic properly with consecutive errors. // Test that backoff is shaping traffic properly with consecutive errors.
@ -1201,7 +1199,7 @@ TEST_F(SyncSchedulerTest, TransientPollFailure) {
StartSyncScheduler(base::Time()); StartSyncScheduler(base::Time());
// Run the unsucessful poll. The failed poll should not trigger backoff. // Run the unsuccessful poll. The failed poll should not trigger backoff.
RunLoop(); RunLoop();
EXPECT_TRUE(scheduler()->IsBackingOff()); EXPECT_TRUE(scheduler()->IsBackingOff());

@ -1324,7 +1324,7 @@ bool Directory::CheckTreeInvariants(syncable::BaseTransaction* trans,
} }
// If the next check failed, it would imply that an item exists // If the next check failed, it would imply that an item exists
// on the server, isn't waiting for application locally, but either // on the server, isn't waiting for application locally, but either
// is an unsynced create or a sucessful delete in the local copy. // is an unsynced create or a successful delete in the local copy.
// Either way, that's a mismatch. // Either way, that's a mismatch.
if (!SyncAssert(0 == server_version, FROM_HERE, if (!SyncAssert(0 == server_version, FROM_HERE,
"Server version should be zero.", "Server version should be zero.",

@ -48,7 +48,7 @@ testAPICalls();
canvas.width = 0; canvas.width = 0;
testAPICalls(); testAPICalls();
// Test a canvas so large that it has no chance of successfull allocating a backing // Test a canvas so large that it has no chance of successful allocating a backing
canvas.width = 10000000; canvas.width = 10000000;
canvas.height = 10000000; canvas.height = 10000000;
testAPICalls(); testAPICalls();

@ -8,7 +8,7 @@
border: solid 1px; border: solid 1px;
} }
/* Test 0: Download sucess */ /* Test 0: Download success */
@font-face { @font-face {
font-family:myfont_0; font-family:myfont_0;
src: local('Courier'), local('Courier New'); src: local('Courier'), local('Courier New');

@ -1,3 +1,3 @@
This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in almost strict mode). If the test is sucessful, the text below should say "SUCCESS". This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in almost strict mode). If the test is successful, the text below should say "SUCCESS".
SUCCESS SUCCESS

@ -22,7 +22,7 @@ function runTests() {
</script> </script>
</head> </head>
<body onload="runTests();"> <body onload="runTests();">
This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in almost strict mode). If the test is sucessful, the text below should say "SUCCESS". This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in almost strict mode). If the test is successful, the text below should say "SUCCESS".
<pre id="console"> <pre id="console">
</pre> </pre>
</body> </body>

@ -1,3 +1,3 @@
This tests that compatMode returns 'BackCompat' when we are in quirk mode. If the test is sucessful, the text below should say "SUCCESS". This tests that compatMode returns 'BackCompat' when we are in quirk mode. If the test is successful, the text below should say "SUCCESS".
SUCCESS SUCCESS

@ -20,7 +20,7 @@ function runTests() {
</script> </script>
</head> </head>
<body onload="runTests();"> <body onload="runTests();">
This tests that compatMode returns 'BackCompat' when we are in quirk mode. If the test is sucessful, the text below should say "SUCCESS". This tests that compatMode returns 'BackCompat' when we are in quirk mode. If the test is successful, the text below should say "SUCCESS".
<pre id="console"> <pre id="console">
</pre> </pre>
</body> </body>

@ -1,3 +1,3 @@
This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in strict mode). If the test is sucessful, the text below should say "SUCCESS". This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in strict mode). If the test is successful, the text below should say "SUCCESS".
SUCCESS SUCCESS

@ -22,7 +22,7 @@ function runTests() {
</script> </script>
</head> </head>
<body onload="runTests();"> <body onload="runTests();">
This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in strict mode). If the test is sucessful, the text below should say "SUCCESS". This tests that compatMode returns 'CSS1Compat' when the declared DTD is known (we are in strict mode). If the test is successful, the text below should say "SUCCESS".
<pre id="console"> <pre id="console">
</pre> </pre>
</body> </body>

@ -6,7 +6,7 @@
<script> <script>
test(function(t) test(function(t)
{ {
var sucessInput = false; var successInput = false;
if (!window.eventSender) if (!window.eventSender)
return; return;
var input = document.getElementById('input1'); var input = document.getElementById('input1');
@ -18,7 +18,7 @@ test(function(t)
var input2 = document.getElementById('input2'); var input2 = document.getElementById('input2');
input2.addEventListener('input', function () { input2.addEventListener('input', function () {
sucessInput = true; successInput = true;
}); });
var x = input2.offsetLeft + input2.offsetWidth / 2; var x = input2.offsetLeft + input2.offsetWidth / 2;
var y = input2.offsetTop + input2.offsetHeight / 2; var y = input2.offsetTop + input2.offsetHeight / 2;
@ -27,6 +27,6 @@ test(function(t)
eventSender.gestureTap(x, y); eventSender.gestureTap(x, y);
eventSender.keyDown('a'); eventSender.keyDown('a');
assert_true(sucessInput); assert_true(successInput);
}, "This tests if the composition is reset before tapping of gesture."); }, "This tests if the composition is reset before tapping of gesture.");
</script> </script>

@ -1015,7 +1015,7 @@ test("synchronous request", function() {
test("synchronous request with callbacks", function() { test("synchronous request with callbacks", function() {
expect(2); expect(2);
var result; var result;
jQuery.ajax({url: url("data/json_obj.js"), async: false, dataType: "text", success: function(data) { ok(true, "sucess callback executed"); result = data; } }); jQuery.ajax({url: url("data/json_obj.js"), async: false, dataType: "text", success: function(data) { ok(true, "success callback executed"); result = data; } });
ok( /^{ "data"/.test( result ), "check returned text" ); ok( /^{ "data"/.test( result ), "check returned text" );
}); });
@ -2249,4 +2249,4 @@ test("jQuery.ajax - active counter", function() {
} }
//} //}

@ -12,7 +12,7 @@ You need to open the above link in a new tab. In the opened page, just click on
<br> <br>
This test checks if you can go back to a _blank-target previously tab-opened page. This test checks if you can go back to a _blank-target previously tab-opened page.
<br> <br>
If the webkit doesn't meet an assertion error : this test is Successfull. If the webkit doesn't meet an assertion error : this test is Successful.
<br> <br>
When you click on the above link, one page (with _blank target) is loaded and this page will open a link and go back. When you click on the above link, one page (with _blank target) is loaded and this page will open a link and go back.
</body> </body>

@ -12,6 +12,6 @@ This test checks if you can go back to a _blank previously tab-opened page.
<br> <br>
When you click on the above link, one page is loaded and tries to go back. When you click on the above link, one page is loaded and tries to go back.
<br> <br>
If the webkit doesn't meet an assertion failure : this test is successfull. If the webkit doesn't meet an assertion failure : this test is successful.
</body> </body>
</html> </html>

@ -18235,7 +18235,7 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<histogram name="Media.EME.CdmFileIO.FileSizeKBOnError" units="KB"> <histogram name="Media.EME.CdmFileIO.FileSizeKBOnError" units="KB">
<owner>xhwang@chromium.org</owner> <owner>xhwang@chromium.org</owner>
<summary> <summary>
Size in KB of the last file sucessfully read by the CDM through CDM FileIO Size in KB of the last file successfully read by the CDM through CDM FileIO
before a specific error happens. This is reported only when the error before a specific error happens. This is reported only when the error
happens, which should be rare. happens, which should be rare.
</summary> </summary>
@ -18244,8 +18244,8 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<histogram name="Media.EME.CdmFileIO.FileSizeKBOnFirstRead" units="KB"> <histogram name="Media.EME.CdmFileIO.FileSizeKBOnFirstRead" units="KB">
<owner>xhwang@chromium.org</owner> <owner>xhwang@chromium.org</owner>
<summary> <summary>
Size in KB of the first file sucessfully read by the CDM through CDM FileIO. Size in KB of the first file successfully read by the CDM through CDM
This is recorded once per CDM instance. FileIO. This is recorded once per CDM instance.
</summary> </summary>
</histogram> </histogram>