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

Unified Diff: chrome/browser/extensions/api/identity_private/identity_private_api.cc

Issue 14081014: Identity API: Change WebAuthFlow to use <webview> instead of a normal browser pop-up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome.identity side-by-side with chrome.experimental.identity Created 7 years, 7 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
Index: chrome/browser/extensions/api/identity_private/identity_private_api.cc
diff --git a/chrome/browser/extensions/api/identity_private/identity_private_api.cc b/chrome/browser/extensions/api/identity_private/identity_private_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..05487df61b49e8882e14197aff35fbbb1ccc9d1f
--- /dev/null
+++ b/chrome/browser/extensions/api/identity_private/identity_private_api.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/api/identity_private/identity_private_api.h"
+
+#include <string>
+
+#include "base/values.h"
+#include "grit/ui_resources.h"
+#include "ui/webui/web_ui_util.h"
+
+namespace extensions {
+
+IdentityPrivateGetResourcesFunction::IdentityPrivateGetResourcesFunction() {}
+
+IdentityPrivateGetResourcesFunction::~IdentityPrivateGetResourcesFunction() {}
+
+bool IdentityPrivateGetResourcesFunction::RunImpl() {
+ DictionaryValue* result = new DictionaryValue;
+
+ result->SetString("IDR_CLOSE_DIALOG",
+ webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG));
+ result->SetString("IDR_CLOSE_DIALOG_H",
+ webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG_H));
+ result->SetString("IDR_CLOSE_DIALOG_P",
+ webui::GetBitmapDataUrlFromResource(IDR_CLOSE_DIALOG_P));
+
+ SetResult(result);
+ return true;
+}
+
+} // extensions
« no previous file with comments | « chrome/browser/extensions/api/identity_private/identity_private_api.h ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698