OCEAN CITY, Md. — Larry Hogan, a Cabinet secretary under former Maryland governor Robert L. Ehrlich Jr. (R), said Friday night that he is looking closely at launching a 2014 gubernatorial bid and will share his decision in the fall.

“I’ve agreed to take a very serious look at it,” Hogan, chairman of the grass-roots group Change Maryland, said in an interview while attending the annual summer conference here of the Maryland Association of Counties.

Hogan said the events of the past week have factored into his thinking. The two leading Democratic candidates — Attorney General Dougals F. Gansler (D) and Lt. Gov Anthony G. Brown (D) — have spent several days sparring over a Washington Post story published Monday night that detailed secretly recorded comments Gansler made at a meeting with campaign volunteers last month in Annapolis.

In the recording, Gansler suggested that Brown had few accomplishmens and is relying on his race to get elected. Brown would be Maryalnd’s first African-American govenor.

Hogan said Brown and Gansler have been acting like “two kids in a sandbox.”

“I think maybe it’s time we put the grown-ups in charge,” Hogan said.

Hogan served as Ehrlich’s appointments secretary, a position that involved filling hundreds of administration jobs.

Hogan would join a competitive Republican primary. Harford County Executive David R. Craig (R) and Del. Ronald A. George (R) have already announced bids. Several others are considering getting into the race, including Michael Steele, a former Republican National Commitee chairman and former lieutenant governor of Maryland.

Charles County businessman Charles Lollar has said he plans to enter the race in September.