OLD | NEW |
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/version.h" | 10 #include "base/version.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); | 353 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); |
354 } | 354 } |
355 | 355 |
356 void ChromeExtensionsBrowserClient::AttachExtensionTaskManagerTag( | 356 void ChromeExtensionsBrowserClient::AttachExtensionTaskManagerTag( |
357 content::WebContents* web_contents, | 357 content::WebContents* web_contents, |
358 ViewType view_type) { | 358 ViewType view_type) { |
359 switch (view_type) { | 359 switch (view_type) { |
360 case VIEW_TYPE_APP_WINDOW: | 360 case VIEW_TYPE_APP_WINDOW: |
361 case VIEW_TYPE_EXTENSION_BACKGROUND_PAGE: | 361 case VIEW_TYPE_EXTENSION_BACKGROUND_PAGE: |
362 case VIEW_TYPE_EXTENSION_DIALOG: | 362 case VIEW_TYPE_EXTENSION_DIALOG: |
| 363 case VIEW_TYPE_EXTENSION_OTHER: |
363 case VIEW_TYPE_EXTENSION_POPUP: | 364 case VIEW_TYPE_EXTENSION_POPUP: |
364 case VIEW_TYPE_LAUNCHER_PAGE: | 365 case VIEW_TYPE_LAUNCHER_PAGE: |
365 case VIEW_TYPE_VIRTUAL_KEYBOARD: | 366 case VIEW_TYPE_VIRTUAL_KEYBOARD: |
366 // These are the only types that are tracked by the ExtensionTag. | 367 // These are the only types that are tracked by the ExtensionTag. |
367 task_management::WebContentsTags::CreateForExtension(web_contents, | 368 task_management::WebContentsTags::CreateForExtension(web_contents, |
368 view_type); | 369 view_type); |
369 return; | 370 return; |
370 | 371 |
371 case VIEW_TYPE_BACKGROUND_CONTENTS: | 372 case VIEW_TYPE_BACKGROUND_CONTENTS: |
372 case VIEW_TYPE_EXTENSION_GUEST: | 373 case VIEW_TYPE_EXTENSION_GUEST: |
(...skipping 15 matching lines...) Expand all Loading... |
388 } | 389 } |
389 | 390 |
390 scoped_refptr<update_client::UpdateClient> | 391 scoped_refptr<update_client::UpdateClient> |
391 ChromeExtensionsBrowserClient::CreateUpdateClient( | 392 ChromeExtensionsBrowserClient::CreateUpdateClient( |
392 content::BrowserContext* context) { | 393 content::BrowserContext* context) { |
393 return update_client::UpdateClientFactory( | 394 return update_client::UpdateClientFactory( |
394 make_scoped_refptr(new ChromeUpdateClientConfig(context))); | 395 make_scoped_refptr(new ChromeUpdateClientConfig(context))); |
395 } | 396 } |
396 | 397 |
397 } // namespace extensions | 398 } // namespace extensions |
OLD | NEW |