Lines Matching defs:browser
5 #include "chrome/browser/ui/tabs/pinned_tab_service.h"
7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_iterator.h"
11 #include "chrome/browser/ui/tabs/pinned_tab_codec.h"
12 #include "content/public/browser/notification_service.h"
16 // Returns true if |browser| is the only normal (tabbed) browser for |browser|'s
18 bool IsOnlyNormalBrowser(Browser* browser) {
20 if (*it != browser && it->is_type_tabbed() &&
21 it->profile() == browser->profile()) {
48 // exits the application or closes the last browser window.
51 // last browser window to close.
52 // Saving is re-enabled when a browser window or tab is opened again.
66 Browser* browser = content::Source<Browser>(source).ptr();
67 if (!has_normal_browser_ && browser->is_type_tabbed() &&
68 browser->profile() == profile_) {
81 Browser* browser = content::Source<Browser>(source).ptr();
83 browser->profile() == profile_) {
84 if (IsOnlyNormalBrowser(browser)) {