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

Unified Diff: chrome/browser/signin/principals_message_filter.cc

Issue 970043002: Remove chrome.principals API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bad merge Created 5 years, 9 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 | « chrome/browser/signin/principals_message_filter.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/principals_message_filter.cc
diff --git a/chrome/browser/signin/principals_message_filter.cc b/chrome/browser/signin/principals_message_filter.cc
deleted file mode 100644
index ef8dd5051d426cfc8c1f6f18fd829170892b4f13..0000000000000000000000000000000000000000
--- a/chrome/browser/signin/principals_message_filter.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 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/signin/principals_message_filter.h"
-
-#include "chrome/common/render_messages.h"
-#include "content/public/browser/browser_thread.h"
-
-PrincipalsMessageFilter::PrincipalsMessageFilter(int render_process_id)
- : BrowserMessageFilter(ChromeMsgStart),
- render_process_id_(render_process_id) {}
-
-PrincipalsMessageFilter::~PrincipalsMessageFilter(){}
-
-void PrincipalsMessageFilter::OverrideThreadForMessage(
- const IPC::Message& message,
- content::BrowserThread::ID* thread) {
- // GetManagedAccounts message is synchronous, it must be handled in the IO
- // thread, so no need to change thread, otherwise switch to UI thread
- if (message.type() == ChromeViewHostMsg_ShowBrowserAccountManagementUI::ID)
- *thread = content::BrowserThread::UI;
-}
-
-bool PrincipalsMessageFilter::OnMessageReceived(const IPC::Message& message) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(PrincipalsMessageFilter, message)
- IPC_MESSAGE_HANDLER(
- ChromeViewHostMsg_GetManagedAccounts, OnMsgGetManagedAccounts)
- IPC_MESSAGE_HANDLER(
- ChromeViewHostMsg_ShowBrowserAccountManagementUI,
- OnMsgShowBrowserAccountManagementUI)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
-}
-
-
-
-void PrincipalsMessageFilter::OnMsgShowBrowserAccountManagementUI(){
- // TODO(guohui)
-}
-
-void PrincipalsMessageFilter::OnMsgGetManagedAccounts(
- const GURL& url, std::vector<std::string>* managed_accounts) {
- // TODO(guohui)
-}
-
« no previous file with comments | « chrome/browser/signin/principals_message_filter.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698