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

Unified Diff: drive_login.cc

Issue 3166035: add more ownership API methods to libcros (Closed) Base URL: http://git.chromium.org/git/cros.git
Patch Set: Forgot to INIT_FUNC some new stuff Created 10 years, 4 months 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 | « chromeos_login.cc ('k') | load.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drive_login.cc
diff --git a/drive_login.cc b/drive_login.cc
index 4e415812a5e29a627d48b6e0f9e9a4ba94a14e73..8c866fa8183174868d83967f02999c5cb5682b3e 100644
--- a/drive_login.cc
+++ b/drive_login.cc
@@ -101,7 +101,17 @@ int main(int argc, const char** argv) {
if (chromeos::SetOwnerKey(key))
LOG(INFO) << "Sent key!";
else
- LOG(FATAL) << "Setting key failed.";
+ LOG(ERROR) << "Setting key failed.";
+
+ if (chromeos::Whitelist("cmasone@gmail.com", key))
+ LOG(INFO) << "Attempted to whitelist";
+ else
+ LOG(INFO) << "Could not attempt to whitelist.";
+
+ if (chromeos::CheckWhitelist("cmasone@gmail.com", &key))
+ LOG(INFO) << "On the whitelist";
+ else
+ LOG(INFO) << "Not on the whitelist.";
::g_main_loop_run(loop);
« no previous file with comments | « chromeos_login.cc ('k') | load.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698