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

Unified Diff: components/drive/service/fake_drive_service.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 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: components/drive/service/fake_drive_service.cc
diff --git a/components/drive/service/fake_drive_service.cc b/components/drive/service/fake_drive_service.cc
index f0ed4b1a26ff983f89429d3dffb3fdddb7ae5111..26b23f3a4f4c2201cb3cc0809de4c49c9b776068 100644
--- a/components/drive/service/fake_drive_service.cc
+++ b/components/drive/service/fake_drive_service.cc
@@ -260,7 +260,7 @@ bool FakeDriveService::LoadAppListForDriveApi(
// Load JSON data, which must be a dictionary.
std::unique_ptr<base::Value> value = test_util::LoadJSONFile(relative_path);
- CHECK_EQ(base::Value::TYPE_DICTIONARY, value->GetType());
+ CHECK_EQ(base::Value::Type::DICTIONARY, value->GetType());
app_info_value_.reset(
static_cast<base::DictionaryValue*>(value.release()));
return !!app_info_value_;
@@ -288,7 +288,7 @@ void FakeDriveService::AddApp(const std::string& app_id,
JSONStringValueDeserializer json(app_json);
std::string error_message;
std::unique_ptr<base::Value> value(json.Deserialize(NULL, &error_message));
- CHECK_EQ(base::Value::TYPE_DICTIONARY, value->GetType());
+ CHECK_EQ(base::Value::Type::DICTIONARY, value->GetType());
base::ListValue* item_list;
CHECK(app_info_value_->GetListWithoutPathExpansion("items", &item_list));

Powered by Google App Engine
This is Rietveld 408576698