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

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

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code cleanup Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/importer/importer.h" 5 #include "chrome/browser/importer/importer.h"
6 6
7 #include "base/threading/thread.h" 7 #include "base/threading/thread.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/common/notification_source.h" 23 #include "chrome/common/notification_source.h"
24 #include "gfx/codec/png_codec.h" 24 #include "gfx/codec/png_codec.h"
25 #include "gfx/favicon_size.h" 25 #include "gfx/favicon_size.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "skia/ext/image_operations.h" 27 #include "skia/ext/image_operations.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 #include "webkit/glue/image_decoder.h" 29 #include "webkit/glue/image_decoder.h"
30 30
31 // TODO(port): Port these files. 31 // TODO(port): Port these files.
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 #include "app/win/win_util.h"
34 #include "chrome/browser/ui/views/importer_lock_view.h" 33 #include "chrome/browser/ui/views/importer_lock_view.h"
34 #include "ui/base/message_box_win.h"
35 #include "views/window/window.h" 35 #include "views/window/window.h"
36 #elif defined(OS_MACOSX) 36 #elif defined(OS_MACOSX)
37 #include "chrome/browser/ui/cocoa/importer/importer_lock_dialog.h" 37 #include "chrome/browser/ui/cocoa/importer/importer_lock_dialog.h"
38 #elif defined(TOOLKIT_USES_GTK) 38 #elif defined(TOOLKIT_USES_GTK)
39 #include "chrome/browser/ui/gtk/import_lock_dialog_gtk.h" 39 #include "chrome/browser/ui/gtk/import_lock_dialog_gtk.h"
40 #endif 40 #endif
41 41
42 using webkit_glue::PasswordForm; 42 using webkit_glue::PasswordForm;
43 43
44 // Importer. 44 // Importer.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 task_ = NewRunnableMethod(importer_, &Importer::StartImport, 205 task_ = NewRunnableMethod(importer_, &Importer::StartImport,
206 profile_info, items, bridge); 206 profile_info, items, bridge);
207 207
208 CheckForFirefoxLock(profile_info, items, first_run); 208 CheckForFirefoxLock(profile_info, items, first_run);
209 209
210 #if defined(OS_WIN) 210 #if defined(OS_WIN)
211 // For google toolbar import, we need the user to log in and store their GAIA 211 // For google toolbar import, we need the user to log in and store their GAIA
212 // credentials. 212 // credentials.
213 if (profile_info.browser_type == importer::GOOGLE_TOOLBAR5) { 213 if (profile_info.browser_type == importer::GOOGLE_TOOLBAR5) {
214 if (!toolbar_importer_utils::IsGoogleGAIACookieInstalled()) { 214 if (!toolbar_importer_utils::IsGoogleGAIACookieInstalled()) {
215 app::win::MessageBox( 215 ui::MessageBox(
216 NULL, 216 NULL,
217 UTF16ToWide(l10n_util::GetStringUTF16( 217 UTF16ToWide(l10n_util::GetStringUTF16(
218 IDS_IMPORTER_GOOGLE_LOGIN_TEXT)).c_str(), 218 IDS_IMPORTER_GOOGLE_LOGIN_TEXT)).c_str(),
219 L"", 219 L"",
220 MB_OK | MB_TOPMOST); 220 MB_OK | MB_TOPMOST);
221 221
222 GURL url("https://www.google.com/accounts/ServiceLogin"); 222 GURL url("https://www.google.com/accounts/ServiceLogin");
223 BrowserList::GetLastActive()->AddSelectedTabWithURL( 223 BrowserList::GetLastActive()->AddSelectedTabWithURL(
224 url, PageTransition::TYPED); 224 url, PageTransition::TYPED);
225 225
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 template_url_vec.reserve(template_urls.size()); 611 template_url_vec.reserve(template_urls.size());
612 std::vector<TemplateURL>::const_iterator iter; 612 std::vector<TemplateURL>::const_iterator iter;
613 for (iter = template_urls.begin(); 613 for (iter = template_urls.begin();
614 iter != template_urls.end(); 614 iter != template_urls.end();
615 ++iter) { 615 ++iter) {
616 template_url_vec.push_back(new TemplateURL(*iter)); 616 template_url_vec.push_back(new TemplateURL(*iter));
617 } 617 }
618 bridge_->SetKeywords(template_url_vec, default_keyword_index, 618 bridge_->SetKeywords(template_url_vec, default_keyword_index,
619 unique_on_host_and_path); 619 unique_on_host_and_path);
620 } 620 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698