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

Side by Side Diff: chrome/browser/background/background_contents_service.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/background/background_contents_service.h" 5 #include "chrome/browser/background/background_contents_service.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 frame_name, 445 frame_name,
446 UTF8ToUTF16(extension_id)); 446 UTF8ToUTF16(extension_id));
447 } 447 }
448 448
449 void BackgroundContentsService::LoadBackgroundContentsFromManifests( 449 void BackgroundContentsService::LoadBackgroundContentsFromManifests(
450 Profile* profile) { 450 Profile* profile) {
451 const ExtensionSet* extensions = 451 const ExtensionSet* extensions =
452 profile->GetExtensionService()->extensions(); 452 profile->GetExtensionService()->extensions();
453 ExtensionSet::const_iterator iter = extensions->begin(); 453 ExtensionSet::const_iterator iter = extensions->begin();
454 for (; iter != extensions->end(); ++iter) { 454 for (; iter != extensions->end(); ++iter) {
455 const Extension* extension = *iter; 455 const Extension* extension = *iter.get();
456 if (extension->is_hosted_app() && extension->has_background_page()) { 456 if (extension->is_hosted_app() && extension->has_background_page()) {
457 LoadBackgroundContents(profile, 457 LoadBackgroundContents(profile,
458 extension->GetBackgroundURL(), 458 extension->GetBackgroundURL(),
459 ASCIIToUTF16("background"), 459 ASCIIToUTF16("background"),
460 UTF8ToUTF16(extension->id())); 460 UTF8ToUTF16(extension->id()));
461 } 461 }
462 } 462 }
463 } 463 }
464 464
465 void BackgroundContentsService::LoadBackgroundContents( 465 void BackgroundContentsService::LoadBackgroundContents(
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 const gfx::Rect& initial_pos, 614 const gfx::Rect& initial_pos,
615 bool user_gesture, 615 bool user_gesture,
616 bool* was_blocked) { 616 bool* was_blocked) {
617 Browser* browser = browser::FindLastActiveWithProfile( 617 Browser* browser = browser::FindLastActiveWithProfile(
618 Profile::FromBrowserContext(new_contents->GetBrowserContext())); 618 Profile::FromBrowserContext(new_contents->GetBrowserContext()));
619 if (browser) { 619 if (browser) {
620 chrome::AddWebContents(browser, NULL, new_contents, disposition, 620 chrome::AddWebContents(browser, NULL, new_contents, disposition,
621 initial_pos, user_gesture, was_blocked); 621 initial_pos, user_gesture, was_blocked);
622 } 622 }
623 } 623 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698