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

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

Issue 3153029: Resubmit r56600 - Start/stop service process when browser starts and stop (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 prefs->RegisterBooleanPref(prefs::kDeletePasswords, false); 1959 prefs->RegisterBooleanPref(prefs::kDeletePasswords, false);
1960 prefs->RegisterBooleanPref(prefs::kDeleteFormData, true); 1960 prefs->RegisterBooleanPref(prefs::kDeleteFormData, true);
1961 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 0); 1961 prefs->RegisterIntegerPref(prefs::kDeleteTimePeriod, 0);
1962 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, true); 1962 prefs->RegisterBooleanPref(prefs::kCheckDefaultBrowser, true);
1963 prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint, true); 1963 prefs->RegisterBooleanPref(prefs::kShowOmniboxSearchHint, true);
1964 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true); 1964 prefs->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
1965 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true); 1965 prefs->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
1966 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true); 1966 prefs->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
1967 prefs->RegisterBooleanPref(prefs::kUseVerticalTabs, false); 1967 prefs->RegisterBooleanPref(prefs::kUseVerticalTabs, false);
1968 prefs->RegisterBooleanPref(prefs::kEnableTranslate, true); 1968 prefs->RegisterBooleanPref(prefs::kEnableTranslate, true);
1969 prefs->RegisterBooleanPref(prefs::kRemotingHasSetupCompleted, false);
1969 } 1970 }
1970 1971
1971 // static 1972 // static
1972 Browser* Browser::GetBrowserForController( 1973 Browser* Browser::GetBrowserForController(
1973 const NavigationController* controller, int* index_result) { 1974 const NavigationController* controller, int* index_result) {
1974 BrowserList::const_iterator it; 1975 BrowserList::const_iterator it;
1975 for (it = BrowserList::begin(); it != BrowserList::end(); ++it) { 1976 for (it = BrowserList::begin(); it != BrowserList::end(); ++it) {
1976 int index = (*it)->tabstrip_model_.GetIndexOfController(controller); 1977 int index = (*it)->tabstrip_model_.GetIndexOfController(controller);
1977 if (index != TabStripModel::kNoTab) { 1978 if (index != TabStripModel::kNoTab) {
1978 if (index_result) 1979 if (index_result)
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
4050 } 4051 }
4051 4052
4052 bool Browser::IsPinned(TabContents* source) { 4053 bool Browser::IsPinned(TabContents* source) {
4053 int index = tabstrip_model_.GetIndexOfTabContents(source); 4054 int index = tabstrip_model_.GetIndexOfTabContents(source);
4054 if (index == TabStripModel::kNoTab) { 4055 if (index == TabStripModel::kNoTab) {
4055 NOTREACHED() << "IsPinned called for tab not in our strip"; 4056 NOTREACHED() << "IsPinned called for tab not in our strip";
4056 return false; 4057 return false;
4057 } 4058 }
4058 return tabstrip_model_.IsTabPinned(index); 4059 return tabstrip_model_.IsTabPinned(index);
4059 } 4060 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698