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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Fix Win GN build. Created 5 years, 1 month 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/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
index 963f0fddaa3f4186bdfc8ca187e31f34837e8067..de9428ff7908542c55e0b3eb35daa5660852f087 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest_chromeos.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/chromeos/ownership/fake_owner_settings_service.h"
#include "chrome/browser/chromeos/settings/scoped_cros_settings_test_helper.h"
#include "chrome/browser/extensions/extension_apitest.h"
+#include "components/signin/core/account_id/account_id.h"
#include "content/public/test/browser_test.h"
#include "extensions/common/switches.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -55,9 +56,10 @@ class BluetoothLowEnergyApiTestChromeOs : public PlatformAppBrowserTest {
user_manager_enabler_.reset(
new chromeos::ScopedUserManagerEnabler(fake_user_manager_));
- const std::string kKiosLogin = "kiosk@foobar.com";
- fake_user_manager_->AddKioskAppUser(kKiosLogin);
- fake_user_manager_->LoginUser(kKiosLogin);
+ const AccountId kiosk_account_id(
+ AccountId::FromUserEmail("kiosk@foobar.com"));
+ fake_user_manager_->AddKioskAppUser(kiosk_account_id);
+ fake_user_manager_->LoginUser(kiosk_account_id);
}
void SetAutoLaunchApp() {

Powered by Google App Engine
This is Rietveld 408576698