Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7954)

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/spellchecker/hunspell_engine.cc ('k') | chrome/renderer/spellchecker/spellcheck_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.cc
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
index a10e17c7a5f2a21b34679c7cdb3bd23d06d7282a..3b73a6a3c1a9ef59f85b7ddd56803a987432ba09 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -4,15 +4,19 @@
#include "chrome/renderer/spellchecker/spellcheck.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <algorithm>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
+#include "build/build_config.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/spellcheck_common.h"
@@ -61,18 +65,18 @@ class DocumentMarkersCollector : public content::RenderViewVisitor {
public:
DocumentMarkersCollector() {}
~DocumentMarkersCollector() override {}
- const std::vector<uint32>& markers() const { return markers_; }
+ const std::vector<uint32_t>& markers() const { return markers_; }
bool Visit(content::RenderView* render_view) override;
private:
- std::vector<uint32> markers_;
+ std::vector<uint32_t> markers_;
DISALLOW_COPY_AND_ASSIGN(DocumentMarkersCollector);
};
bool DocumentMarkersCollector::Visit(content::RenderView* render_view) {
if (!render_view || !render_view->GetWebView())
return true;
- WebVector<uint32> markers;
+ WebVector<uint32_t> markers;
render_view->GetWebView()->spellingMarkers(&markers);
for (size_t i = 0; i < markers.size(); ++i)
markers_.push_back(markers[i]);
« no previous file with comments | « chrome/renderer/spellchecker/hunspell_engine.cc ('k') | chrome/renderer/spellchecker/spellcheck_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698