Index: modules/openid/openid.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/openid/openid.test,v
retrieving revision 1.8
diff -u -r1.8 openid.test
--- modules/openid/openid.test	24 Nov 2009 05:20:48 -0000	1.8
+++ modules/openid/openid.test	16 Dec 2009 20:45:52 -0000
@@ -166,7 +166,7 @@
         
     // Submit form to the OpenID Provider Endpoint.
     $this->drupalPost(NULL, array(), t('Send'));
-    $this->assertText('john', t('User was logged in.'));
+    $this->assertText('My account', t('User was logged in.'));
 
     $user = user_load_by_name('john');
     $this->assertTrue($user, t('User was registered with right username.'));
Index: modules/user/user.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.pages.inc,v
retrieving revision 1.62
diff -u -r1.62 user.pages.inc
--- modules/user/user.pages.inc	1 Dec 2009 16:03:35 -0000	1.62
+++ modules/user/user.pages.inc	16 Dec 2009 20:45:52 -0000
@@ -160,6 +160,17 @@
 }
 
 /**
+ * Menu callback; Display a user profile page.
+ */
+function user_view($account) {
+  // Keep the page title consistent using $account->name, since the
+  // link title may be displayed as 'My account'.
+  drupal_set_title(format_username($account));
+  
+  return user_build($account);
+}
+
+/**
  * Process variables for user-profile.tpl.php.
  *
  * The $variables array contains the following arguments:
Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.1090
diff -u -r1.1090 user.module
--- modules/user/user.module	16 Dec 2009 19:57:45 -0000	1.1090
+++ modules/user/user.module	16 Dec 2009 20:45:52 -0000
@@ -1525,7 +1525,7 @@
     'title' => 'My account',
     'title callback' => 'user_page_title',
     'title arguments' => array(1),
-    'page callback' => 'user_build',
+    'page callback' => 'user_view',
     'page arguments' => array(1),
     'access callback' => 'user_view_access',
     'access arguments' => array(1),
@@ -1674,9 +1674,12 @@
 }
 
 /**
- * Menu item title callback - use the user name.
+ * Menu item title callback.
  */
 function user_page_title($account) {
+  if ($account->uid == $GLOBALS['user']->uid) {
+    return t('My account');
+  }
   return format_username($account);
 }
 
