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

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

Issue 155063: Merge r18210.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 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
« no previous file with comments | « no previous file | chrome/installer/util/google_chrome_distribution_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/first_run.cc:r18210,19692
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 if (parse_result & installer_util::MASTER_PROFILE_SHOW_WELCOME) 303 if (parse_result & installer_util::MASTER_PROFILE_SHOW_WELCOME)
304 FirstRun::SetShowWelcomePagePref(); 304 FirstRun::SetShowWelcomePagePref();
305 305
306 int import_items = 0; 306 int import_items = 0;
307 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_SEARCH_ENGINE) 307 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_SEARCH_ENGINE)
308 import_items += SEARCH_ENGINES; 308 import_items += SEARCH_ENGINES;
309 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_HISTORY) 309 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_HISTORY)
310 import_items += HISTORY; 310 import_items += HISTORY;
311 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_BOOKMARKS) 311 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_BOOKMARKS)
312 import_items += FAVORITES; 312 import_items += FAVORITES;
313 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_HOME_PAGE)
314 import_items += HOME_PAGE;
313 315
314 if (import_items) { 316 if (import_items) {
315 // There is something to import from the default browser. This launches 317 // There is something to import from the default browser. This launches
316 // the importer process and blocks until done or until it fails. 318 // the importer process and blocks until done or until it fails.
317 if (!FirstRun::ImportSettings(NULL, 0, import_items, NULL)) { 319 if (!FirstRun::ImportSettings(NULL, 0, import_items, NULL)) {
318 LOG(WARNING) << "silent import failed"; 320 LOG(WARNING) << "silent import failed";
319 } 321 }
320 } 322 }
321 323
322 if (parse_result & 324 if (parse_result &
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 893
892 DISALLOW_COPY_AND_ASSIGN(TryChromeDialog); 894 DISALLOW_COPY_AND_ASSIGN(TryChromeDialog);
893 }; 895 };
894 896
895 } // namespace 897 } // namespace
896 898
897 Upgrade::TryResult Upgrade::ShowTryChromeDialog() { 899 Upgrade::TryResult Upgrade::ShowTryChromeDialog() {
898 TryChromeDialog td; 900 TryChromeDialog td;
899 return td.ShowModal(); 901 return td.ShowModal();
900 } 902 }
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/google_chrome_distribution_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698