A Canadian flag flies in front of the Peace Tower on Parliament Hill in Ottawa, Ontario, Canada, March 22, 2017. REUTERS/Chris Wattie

OTTAWA (Reuters) – Microsoft Corp and Facebook Inc have agreed to help boost the security of Canada’s October election by removing fake accounts and cracking down on bots, a top government official said on Monday.

The measures are outlined in a non-binding declaration on electoral integrity, Democratic Institutions Minister Karina Gould told legislators.

Reporting by David Ljunggren in Ottawa; Editing by Matthew Lewis

Our Standards:The Thomson Reuters Trust Principles.