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

Unified Diff: chrome/browser/chromeos/display/display_preferences.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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
Index: chrome/browser/chromeos/display/display_preferences.cc
diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc
index 104a89d4c68ce71571b0c32a64d5a2857a7b5da1..a3f9666f22c03dfc235a5887305093cb506b0f0e 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/display/display_preferences.h"
+#include <stddef.h>
+
#include "ash/display/display_layout_store.h"
#include "ash/display/display_manager.h"
#include "ash/display/display_pref_util.h"
@@ -124,8 +126,8 @@ void LoadDisplayLayouts() {
if (it.key().find(",") != std::string::npos) {
std::vector<std::string> ids = base::SplitString(
it.key(), ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
- int64 id1 = gfx::Display::kInvalidDisplayID;
- int64 id2 = gfx::Display::kInvalidDisplayID;
+ int64_t id1 = gfx::Display::kInvalidDisplayID;
+ int64_t id2 = gfx::Display::kInvalidDisplayID;
if (!base::StringToInt64(ids[0], &id1) ||
!base::StringToInt64(ids[1], &id2) ||
id1 == gfx::Display::kInvalidDisplayID ||
@@ -146,7 +148,7 @@ void LoadDisplayProperties() {
const base::DictionaryValue* dict_value = NULL;
if (!it.value().GetAsDictionary(&dict_value) || dict_value == NULL)
continue;
- int64 id = gfx::Display::kInvalidDisplayID;
+ int64_t id = gfx::Display::kInvalidDisplayID;
if (!base::StringToInt64(it.key(), &id) ||
id == gfx::Display::kInvalidDisplayID) {
continue;
@@ -249,7 +251,7 @@ void StoreCurrentDisplayProperties() {
size_t num = display_manager->GetNumDisplays();
for (size_t i = 0; i < num; ++i) {
const gfx::Display& display = display_manager->GetDisplayAt(i);
- int64 id = display.id();
+ int64_t id = display.id();
ash::DisplayInfo info = display_manager->GetDisplayInfo(id);
scoped_ptr<base::DictionaryValue> property_value(
@@ -392,8 +394,8 @@ void LoadDisplayPreferences(bool first_run_after_boot) {
}
// Stores the display layout for given display pairs.
-void StoreDisplayLayoutPrefForTest(int64 id1,
- int64 id2,
+void StoreDisplayLayoutPrefForTest(int64_t id1,
+ int64_t id2,
const ash::DisplayLayout& layout) {
StoreDisplayLayoutPref(ash::CreateDisplayIdPair(id1, id2), layout);
}
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.h ('k') | chrome/browser/chromeos/display/display_preferences_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698