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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.cc

Issue 2172043002: chrome/browser/extensions: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 content::BrowserContext* context, 343 content::BrowserContext* context,
344 std::unique_ptr<ExtensionError> error) { 344 std::unique_ptr<ExtensionError> error) {
345 ErrorConsole::Get(context)->ReportError(std::move(error)); 345 ErrorConsole::Get(context)->ReportError(std::move(error));
346 } 346 }
347 347
348 void ChromeExtensionsBrowserClient::CleanUpWebView( 348 void ChromeExtensionsBrowserClient::CleanUpWebView(
349 content::BrowserContext* browser_context, 349 content::BrowserContext* browser_context,
350 int embedder_process_id, 350 int embedder_process_id,
351 int view_instance_id) { 351 int view_instance_id) {
352 // Clean up context menus for the WebView. 352 // Clean up context menus for the WebView.
353 auto menu_manager = 353 auto* menu_manager =
354 MenuManager::Get(Profile::FromBrowserContext(browser_context)); 354 MenuManager::Get(Profile::FromBrowserContext(browser_context));
355 menu_manager->RemoveAllContextItems( 355 menu_manager->RemoveAllContextItems(
356 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); 356 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id));
357 } 357 }
358 358
359 void ChromeExtensionsBrowserClient::AttachExtensionTaskManagerTag( 359 void ChromeExtensionsBrowserClient::AttachExtensionTaskManagerTag(
360 content::WebContents* web_contents, 360 content::WebContents* web_contents,
361 ViewType view_type) { 361 ViewType view_type) {
362 switch (view_type) { 362 switch (view_type) {
363 case VIEW_TYPE_APP_WINDOW: 363 case VIEW_TYPE_APP_WINDOW:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 new ChromeExtensionBluetoothChooser(frame, event_handler)); 411 new ChromeExtensionBluetoothChooser(frame, event_handler));
412 } 412 }
413 413
414 bool ChromeExtensionsBrowserClient::IsActivityLoggingEnabled( 414 bool ChromeExtensionsBrowserClient::IsActivityLoggingEnabled(
415 content::BrowserContext* context) { 415 content::BrowserContext* context) {
416 ActivityLog* activity_log = ActivityLog::GetInstance(context); 416 ActivityLog* activity_log = ActivityLog::GetInstance(context);
417 return activity_log && activity_log->is_active(); 417 return activity_log && activity_log->is_active();
418 } 418 }
419 419
420 } // namespace extensions 420 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/chrome_extension_web_contents_observer.cc ('k') | chrome/browser/extensions/extension_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698