summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-13 06:19:25 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-13 06:19:25 +0000
commitf60c670b3113fcbb33221220d252749902e58eaa (patch)
tree7d29e2f0da646cc559ad7f6c00c4fe551b87a2c8 /chrome/browser
parent1c0a24ad3bcc683d4631665b982d3a9f611e2f59 (diff)
downloadchromium_src-f60c670b3113fcbb33221220d252749902e58eaa.zip
chromium_src-f60c670b3113fcbb33221220d252749902e58eaa.tar.gz
chromium_src-f60c670b3113fcbb33221220d252749902e58eaa.tar.bz2
Fix comment errors (mostly typos) in chrome/browser/chromeos/gdata/.
BUG=none Review URL: https://codereview.chromium.org/10905253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/chromeos/gdata/drive_api_parser.h4
-rw-r--r--chrome/browser/chromeos/gdata/drive_cache.cc2
-rw-r--r--chrome/browser/chromeos/gdata/drive_cache_metadata.cc2
-rw-r--r--chrome/browser/chromeos/gdata/drive_cache_metadata.h2
-rw-r--r--chrome/browser/chromeos/gdata/drive_cache_metadata_unittest.cc4
-rw-r--r--chrome/browser/chromeos/gdata/drive_protocol_handler.cc10
-rw-r--r--chrome/browser/chromeos/gdata/drive_service_interface.h2
-rw-r--r--chrome/browser/chromeos/gdata/drive_sync_client.cc4
-rw-r--r--chrome/browser/chromeos/gdata/drive_task_executor.cc2
-rw-r--r--chrome/browser/chromeos/gdata/drive_test_util.h2
-rw-r--r--chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc6
-rw-r--r--chrome/browser/chromeos/gdata/gdata_wapi_parser.cc2
-rw-r--r--chrome/browser/chromeos/gdata/operation_runner.cc2
13 files changed, 22 insertions, 22 deletions
diff --git a/chrome/browser/chromeos/gdata/drive_api_parser.h b/chrome/browser/chromeos/gdata/drive_api_parser.h
index caadd90..e90304b 100644
--- a/chrome/browser/chromeos/gdata/drive_api_parser.h
+++ b/chrome/browser/chromeos/gdata/drive_api_parser.h
@@ -148,7 +148,7 @@ class AppResource {
// If empty, application name is used instead.
const std::string& object_type() const { return object_type_; }
- // Returns whether this application suuports creating new objects.
+ // Returns whether this application supports creating new objects.
bool supports_create() const { return supports_create_; }
// Returns whether this application supports importing Google Docs.
@@ -161,7 +161,7 @@ class AppResource {
// user's Drive.
bool is_authorized() const { return authorized_; }
- // Returns the product URL, e.g. at Chrmoe Web Store.
+ // Returns the product URL, e.g. at Chrome Web Store.
const GURL& product_url() const { return product_url_; }
// List of primary mime types supported by this WebApp. Primary status should
diff --git a/chrome/browser/chromeos/gdata/drive_cache.cc b/chrome/browser/chromeos/gdata/drive_cache.cc
index d8acd9b..6c5133e 100644
--- a/chrome/browser/chromeos/gdata/drive_cache.cc
+++ b/chrome/browser/chromeos/gdata/drive_cache.cc
@@ -874,7 +874,7 @@ void DriveCache::Store(const std::string& resource_id,
symlink_path,
!symlink_path.empty()); // create symlink
- // Determine search pattern for stale filenames corrresponding to resource_id,
+ // Determine search pattern for stale filenames corresponding to resource_id,
// either "<resource_id>*" or "<resource_id>.*".
FilePath stale_filenames_pattern;
if (md5.empty()) {
diff --git a/chrome/browser/chromeos/gdata/drive_cache_metadata.cc b/chrome/browser/chromeos/gdata/drive_cache_metadata.cc
index 10e7bc8..f5ce959 100644
--- a/chrome/browser/chromeos/gdata/drive_cache_metadata.cc
+++ b/chrome/browser/chromeos/gdata/drive_cache_metadata.cc
@@ -272,7 +272,7 @@ bool CheckIfMd5Matches(
// If the entry is pinned, it's ok for the entry to have an empty
// MD5. This can happen if the pinned file is not fetched. MD5 for pinned
// files are collected from files in "persistent" directory, but the
- // persistent files do not exisit if these are not fetched yet.
+ // persistent files do not exist if these are not fetched yet.
return true;
} else if (md5.empty()) {
// If the MD5 matching is not requested, don't check MD5.
diff --git a/chrome/browser/chromeos/gdata/drive_cache_metadata.h b/chrome/browser/chromeos/gdata/drive_cache_metadata.h
index cd5de8d..47d54a6 100644
--- a/chrome/browser/chromeos/gdata/drive_cache_metadata.h
+++ b/chrome/browser/chromeos/gdata/drive_cache_metadata.h
@@ -35,7 +35,7 @@ class DriveCacheMetadata {
base::SequencedTaskRunner* blocking_task_runner);
// Creates DriveCacheMetadata instance. This uses FakeDriveCacheMetadata,
- // which is an in-memory implmentation and faster than DriveCacheMetadataDB.
+ // which is an in-memory implementation and faster than DriveCacheMetadataDB.
static scoped_ptr<DriveCacheMetadata> CreateDriveCacheMetadataForTesting(
base::SequencedTaskRunner* blocking_task_runner);
diff --git a/chrome/browser/chromeos/gdata/drive_cache_metadata_unittest.cc b/chrome/browser/chromeos/gdata/drive_cache_metadata_unittest.cc
index 041d4d4..bfcffb5 100644
--- a/chrome/browser/chromeos/gdata/drive_cache_metadata_unittest.cc
+++ b/chrome/browser/chromeos/gdata/drive_cache_metadata_unittest.cc
@@ -53,7 +53,7 @@ class DriveCacheMetadataTest : public testing::Test {
// pinned directory. This file should be removed.
CreateFile(persistent_directory_.AppendASCII("id_bad.md5bad"));
// "id_symlink" is invalid, as symlink is not allowed here. This should
- // be moreved.
+ // be removed.
CreateSymbolicLink(FilePath::FromUTF8Unsafe(util::kSymLinkToDevNull),
persistent_directory_.AppendASCII("id_symlink"));
@@ -63,7 +63,7 @@ class DriveCacheMetadataTest : public testing::Test {
// "id_quux" is invalid as we shouldn't have a dirty file in "tmp".
CreateFile(tmp_directory_.AppendASCII("id_quux.local"));
// "id_symlink_tmp" is invalid, as symlink is not allowed here. This
- // should be moreved.
+ // should be removed.
CreateSymbolicLink(FilePath::FromUTF8Unsafe(util::kSymLinkToDevNull),
tmp_directory_.AppendASCII("id_symlink_tmp"));
diff --git a/chrome/browser/chromeos/gdata/drive_protocol_handler.cc b/chrome/browser/chromeos/gdata/drive_protocol_handler.cc
index 0343dad..235bbbf 100644
--- a/chrome/browser/chromeos/gdata/drive_protocol_handler.cc
+++ b/chrome/browser/chromeos/gdata/drive_protocol_handler.cc
@@ -194,7 +194,7 @@ class DriveURLRequestJob : public net::URLRequestJob {
int BytesReadCompleted();
void RecordBytesRead(int bytes_read);
- // Helper methods to fomulate and notify about response status, info and
+ // Helper methods to formulate and notify about response status, info and
// headers.
void NotifySuccess();
void NotifyFailure(int);
@@ -267,7 +267,7 @@ void DriveURLRequestJob::Start() {
// 7) If file is downloaded from Drive:
// 7.1) Whenever net::URLFetcherCore::OnReadCompleted() receives a part
// of the response, it invokes
- // constent::URLFetcherDelegate::OnURLFetchDownloadData() if
+ // net::URLFetcherDelegate::OnURLFetchDownloadData() if
// net::URLFetcherDelegate::ShouldSendDownloadData() is true.
// 7.2) gdata::DownloadFileOperation overrides the default implementations
// of the following methods of net::URLFetcherDelegate:
@@ -278,7 +278,7 @@ void DriveURLRequestJob::Start() {
// 7.3) DriveProtolHandler::OnURLFetchDownloadData (i.e. this class)
// is at the end of the invocation chain and actually implements the
// method.
- // 7.4) Copies the formal download data into a growable-drainable dowload
+ // 7.4) Copies the formal download data into a growable-drainable download
// IOBuffer
// - IOBuffer has initial size 4096, same as buffer used in
// net::URLFetcherCore::OnReadCompleted.
@@ -415,8 +415,8 @@ bool DriveURLRequestJob::ReadRawData(net::IOBuffer* dest,
// 3) Otherwise, the next ReadRawData() call will provide the response buffer,
// when we would repeat from step 2.
// Note that we only notify read complete when the response buffer is all
- // filled up or it's the last chunk of data. During investgiation, I
- // discovered that if i notify read complete without filling up the response
+ // filled up or it's the last chunk of data. During investigation, I
+ // discovered that if I notify read complete without filling up the response
// buffer, ReadRawData gets called less and less, resulting in the download
// buffer growing bigger and bigger, which is definitely undesirable for us.
diff --git a/chrome/browser/chromeos/gdata/drive_service_interface.h b/chrome/browser/chromeos/gdata/drive_service_interface.h
index d878aa3..c2ae7f9 100644
--- a/chrome/browser/chromeos/gdata/drive_service_interface.h
+++ b/chrome/browser/chromeos/gdata/drive_service_interface.h
@@ -44,7 +44,7 @@ enum DocumentExportFormat {
// Observer interface for DriveServiceInterface.
class DriveServiceObserver {
public:
- // Triggered when the service gets ready to perform operatons.
+ // Triggered when the service gets ready to perform operations.
virtual void OnReadyToPerformOperations() = 0;
protected:
diff --git a/chrome/browser/chromeos/gdata/drive_sync_client.cc b/chrome/browser/chromeos/gdata/drive_sync_client.cc
index 4e60e83..b9bda05 100644
--- a/chrome/browser/chromeos/gdata/drive_sync_client.cc
+++ b/chrome/browser/chromeos/gdata/drive_sync_client.cc
@@ -30,7 +30,7 @@ namespace {
// offline" checkbox on a file, and immediately cancel it in a second.
// It's a waste to fetch the file in this case.
//
-// 2) For uploading, file writing via HTML5 file system API is perfomred in
+// 2) For uploading, file writing via HTML5 file system API is performed in
// two steps: 1) truncate a file to 0 bytes, 2) write contents. We
// shouldn't start uploading right after the step 1). Besides, the user
// may edit the same file repeatedly in a short period of time.
@@ -56,7 +56,7 @@ struct CompareTypeAndResourceId {
const std::string resource_id;
};
-// Returns true if the curernt network connection is over cellular.
+// Returns true if the current network connection is over cellular.
bool IsConnectionTypeCellular() {
bool is_cellular = false;
// Use switch, not if, to allow compiler to catch future enum changes.
diff --git a/chrome/browser/chromeos/gdata/drive_task_executor.cc b/chrome/browser/chromeos/gdata/drive_task_executor.cc
index 312f73d..9bd0895 100644
--- a/chrome/browser/chromeos/gdata/drive_task_executor.cc
+++ b/chrome/browser/chromeos/gdata/drive_task_executor.cc
@@ -88,7 +88,7 @@ void DriveTaskExecutor::OnFileEntryFetched(
DriveSystemService* system_service =
DriveSystemServiceFactory::GetForProfile(profile());
- // Here, we are only insterested in files.
+ // Here, we are only interested in files.
if (entry_proto.get() && !entry_proto->has_file_specific_info())
error = DRIVE_FILE_ERROR_NOT_FOUND;
diff --git a/chrome/browser/chromeos/gdata/drive_test_util.h b/chrome/browser/chromeos/gdata/drive_test_util.h
index 341d188..d4cdac6 100644
--- a/chrome/browser/chromeos/gdata/drive_test_util.h
+++ b/chrome/browser/chromeos/gdata/drive_test_util.h
@@ -25,7 +25,7 @@ typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
namespace test_util {
-// Runs a task posted to the blocking pool, including subquent tasks posted
+// Runs a task posted to the blocking pool, including subsequent tasks posted
// to the UI message loop and the blocking pool.
//
// A task is often posted to the blocking pool with PostTaskAndReply(). In
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc b/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc
index 11b311b..f491e7a 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc
@@ -186,7 +186,7 @@ LoadRootFeedParams::~LoadRootFeedParams() {
// This is a trick to update the number of fetched documents frequently on
// UI. Due to performance reason, we need to fetch a number of files at
// a time. However, it'll take long time, and a user has no way to know
-// the current update state. In order to make users confortable,
+// the current update state. In order to make users comfortable,
// we increment the number of fetched documents with more frequent but smaller
// steps than actual fetching.
struct GetDocumentsUiState {
@@ -258,8 +258,8 @@ void GDataWapiFeedLoader::ReloadFromServerIfNeeded(
local_changestamp,
callback));
// Drive v2 needs a separate application list fetch operation.
- // TODO(kochi): Application list rarely changes and do not necessarily
- // refresed as often as files.
+ // TODO(kochi): Application list rarely changes and is not necessarily
+ // refreshed as often as files.
drive_service_->GetApplicationInfo(
base::Bind(&GDataWapiFeedLoader::OnGetApplicationList,
weak_ptr_factory_.GetWeakPtr()));
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc b/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
index 9c131b6..3a1d685 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
@@ -604,7 +604,7 @@ bool DocumentEntry::HasFieldPresent(const base::Value* value,
// static
void DocumentEntry::RegisterJSONConverter(
base::JSONValueConverter<DocumentEntry>* converter) {
- // inheritant the parent registrations.
+ // Inherit the parent registrations.
FeedEntry::RegisterJSONConverter(
reinterpret_cast<base::JSONValueConverter<FeedEntry>*>(converter));
converter->RegisterStringField(
diff --git a/chrome/browser/chromeos/gdata/operation_runner.cc b/chrome/browser/chromeos/gdata/operation_runner.cc
index d0bfdfb..e090065 100644
--- a/chrome/browser/chromeos/gdata/operation_runner.cc
+++ b/chrome/browser/chromeos/gdata/operation_runner.cc
@@ -46,7 +46,7 @@ void OperationRunner::StartOperationWithRetry(
AuthenticatedOperationInterface* operation) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- // The re-authenticatation callback will run on UI thread.
+ // The re-authentication callback will run on UI thread.
operation->SetReAuthenticateCallback(
base::Bind(&OperationRunner::RetryOperation,
weak_ptr_factory_.GetWeakPtr()));