Paste Search Dynamic
Recent pastes
Voice Search Controller Create
  1. - (void)ensureVoiceSearchControllerCreated {
  2.  
  3.   if (!_voiceSearchController) {
  4.  
  5.     VoiceSearchProvider* provider =
  6.  
  7.         ios::GetChromeBrowserProvider()->GetVoiceSearchProvider();
  8.  
  9.     if (provider) {
  10.  
  11.       _voiceSearchController =
  12.  
  13.           provider->CreateVoiceSearchController(self.browser);
  14.  
  15.       if (self.primaryToolbarCoordinator) {
  16.  
  17.         _voiceSearchController->SetDispatcher(
  18.  
  19.             static_cast<id<LoadQueryCommands>>(self.commandDispatcher));
  20.  
  21.       }
  22.  
  23.     }
  24.  
  25.   }
  26.  
  27. }
Parsed in 0.002 seconds