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

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

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/sync/sync_setup_flow.h" 5 #include "chrome/browser/sync/sync_setup_flow.h"
6 6
7 #include "app/gfx/font.h"
8 #include "app/gfx/font_util.h" 7 #include "app/gfx/font_util.h"
9 #include "base/callback.h" 8 #include "base/callback.h"
10 #include "base/histogram.h" 9 #include "base/histogram.h"
11 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
12 #include "base/json/json_writer.h" 11 #include "base/json/json_writer.h"
13 #include "base/string_util.h" 12 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
15 #include "base/values.h" 14 #include "base/values.h"
16 #include "chrome/browser/browser.h" 15 #include "chrome/browser/browser.h"
17 #include "chrome/browser/browser_list.h" 16 #include "chrome/browser/browser_list.h"
18 #if defined(OS_MACOSX) 17 #if defined(OS_MACOSX)
19 #include "chrome/browser/cocoa/html_dialog_window_controller_cppsafe.h" 18 #include "chrome/browser/cocoa/html_dialog_window_controller_cppsafe.h"
20 #endif 19 #endif
21 #include "chrome/browser/google_service_auth_error.h" 20 #include "chrome/browser/google_service_auth_error.h"
22 #include "chrome/browser/pref_service.h" 21 #include "chrome/browser/pref_service.h"
23 #include "chrome/browser/profile.h" 22 #include "chrome/browser/profile.h"
24 #include "chrome/browser/renderer_host/render_view_host.h" 23 #include "chrome/browser/renderer_host/render_view_host.h"
25 #include "chrome/browser/sync/profile_sync_service.h" 24 #include "chrome/browser/sync/profile_sync_service.h"
26 #include "chrome/browser/tab_contents/tab_contents.h" 25 #include "chrome/browser/tab_contents/tab_contents.h"
27 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
27 #include "gfx/font.h"
28 #include "grit/locale_settings.h" 28 #include "grit/locale_settings.h"
29 29
30 // XPath expression for finding specific iframes. 30 // XPath expression for finding specific iframes.
31 static const wchar_t* kLoginIFrameXPath = L"//iframe[@id='login']"; 31 static const wchar_t* kLoginIFrameXPath = L"//iframe[@id='login']";
32 static const wchar_t* kMergeIFrameXPath = L"//iframe[@id='merge']"; 32 static const wchar_t* kMergeIFrameXPath = L"//iframe[@id='merge']";
33 static const wchar_t* kDoneIframeXPath = L"//iframe[@id='done']"; 33 static const wchar_t* kDoneIframeXPath = L"//iframe[@id='done']";
34 34
35 // Helper function to read the JSON string from the Value parameter. 35 // Helper function to read the JSON string from the Value parameter.
36 static std::string GetJsonResponse(const Value* content) { 36 static std::string GetJsonResponse(const Value* content) {
37 if (!content || !content->IsType(Value::TYPE_LIST)) { 37 if (!content || !content->IsType(Value::TYPE_LIST)) {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // being able to intercept ShowHtmlDialog() calls. 349 // being able to intercept ShowHtmlDialog() calls.
350 #if defined(OS_MACOSX) 350 #if defined(OS_MACOSX)
351 html_dialog_window_controller::ShowHtmlDialog(flow, service->profile()); 351 html_dialog_window_controller::ShowHtmlDialog(flow, service->profile());
352 #else 352 #else
353 delete flow; 353 delete flow;
354 return NULL; 354 return NULL;
355 #endif 355 #endif
356 } 356 }
357 return flow; 357 return flow;
358 } 358 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | chrome/browser/views/about_chrome_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698